Share via


DynamicValue.TryGetValue Method (String, DynamicValue)

 

Gets the value associated with the specified key.

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

Syntax

public bool TryGetValue(
    string key,
    out DynamicValue value
)
public:
virtual bool TryGetValue(
    String^ key,
    [OutAttribute] DynamicValue^% value
) sealed
abstract TryGetValue : 
        key:string *
        value:DynamicValue byref -> bool
override TryGetValue : 
        key:string *
        value:DynamicValue byref -> bool
Public Function TryGetValue (
    key As String,
    <OutAttribute> ByRef value As DynamicValue
) As Boolean

Parameters

  • 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.

Implements

IDictionary<TKey, TValue>.TryGetValue(TKey, TValue)

See Also

DynamicValue Class
Microsoft.Activities Namespace

Return to top