Click or drag to resize

ActContextItem Property

Gets or sets the value associated with the specified name.

Namespace:  SmartTests
Assembly:  SmartTests (in SmartTests.dll) Version: 1.9.0
public Object this[
	string name
] { get; set; }


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.
ArgumentNullExceptionname is null.
KeyNotFoundExceptionThe property is retrieved and name does not exist in the dictionary.

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