DynamicValue.TryGetValue Method (String, DynamicValue)


Gets the value associated with the specified key.

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

public bool TryGetValue(
	string key,
	out DynamicValue value


Type: System.String

The key of the value to get.

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