Microsoft.Activities.Extensions |
WorkflowArguments..::..TryGetValue Method |
WorkflowArguments Class See Also Send Feedback |
Gets the value associated with the specified key.
Namespace: Microsoft.Activities.Extensions
Assembly: Microsoft.Activities.Extensions (in Microsoft.Activities.Extensions.dll) Version: 2.0.6.9 (2.0.6.9)
Syntax
C# |
---|
public bool TryGetValue( string key, out Object value ) |
Visual Basic |
---|
Public Function TryGetValue ( _ key As String, _ <OutAttribute> ByRef value As Object _ ) As Boolean |
Visual C++ |
---|
public: virtual bool TryGetValue( String^ key, [OutAttribute] Object^% value ) sealed |
Parameters
- key
- Type: System..::..String
The key whose value to get.
- value
- Type: System..::..Object%
When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.
Return Value
true if the object that implements IDictionary<(Of <(<'TKey, TValue>)>)> contains an element with the specified key; otherwise, false.Implements
IDictionary<(Of <(<'TKey, TValue>)>)>..::..TryGetValue(TKey, TValue%)Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | key is null. |