DynamicValue::TryGetValue Method (String^, DynamicValue^)

 

Gets the value associated with the specified key.

Namespace:   Microsoft.Activities
Assembly:  Microsoft.Activities (in Microsoft.Activities.dll)

public:
virtual bool TryGetValue(
	String^ key,
	[OutAttribute] DynamicValue^% value
) sealed

Parameters

key
Type: System::String^

The key of the value to get.

value
Type: Microsoft.Activities::DynamicValue^

When this method returns, contains the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter.

Return Value

Type: System::Boolean

true if the T:System.Collections.Generic.Dictionary<TKey,TValue> contains an element with the specified key; otherwise, false.

Return to top
Show: