| ActContextItem Property |
Gets or sets the value associated with the specified name.
Namespace:
SmartTests
Assembly:
SmartTests (in SmartTests.dll) Version: 1.12.0
Syntax public Object this[
string name
] { get; set; }
Public Default Property Item (
name As String
) As Object
Get
Set
public:
property Object^ default[String^ name] {
Object^ get (String^ name);
void set (String^ name, Object^ value);
}
member Item : Object with get, set
Parameters
- name
- Type: SystemString
The name of the value to get or set.
Return Value
Type:
Object
The value associated with the specified name.
If the specified name is not found, a get operation throws a
KeyNotFoundException,
and a set operation creates a new element with the specified name.
Exceptions Remarks Do not use it directly. It is only useful for Smart Assertions development.
The best is to encapsulate this information using some extensions methods on this class; thus,
you have meaningful names and right types.
SetHandle(ActContext) for an example.
See Also