Click or drag to resize

ActContextTryGetValue Method (String, Object)

Gets the value associated with the specified name.

Namespace:  SmartTests
Assembly:  SmartTests (in SmartTests.dll) Version: 1.9.0
Syntax
public bool TryGetValue(
	string name,
	out Object value
)

Parameters

name
Type: SystemString
The name of the value to get.
value
Type: SystemObject
The value associated with the specified name. If the specified name is not found, returns false and value is null.

Return Value

Type: Boolean
true if the context contains an element with the specified name; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionname is null.
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.

See Also