Microsoft.Activities.Extensions |
WorkflowArguments..::..Add Method (String, Object) |
WorkflowArguments Class See Also Send Feedback |
Adds an element with the provided key and value to the IDictionary<(Of <(<'TKey, TValue>)>)>.
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 void Add( string key, Object value ) |
Visual Basic |
---|
Public Sub Add ( _ key As String, _ value As Object _ ) |
Visual C++ |
---|
public: virtual void Add( String^ key, Object^ value ) sealed |
Parameters
- key
- Type: System..::..String
The object to use as the key of the element to add.
- value
- Type: System..::..Object
The object to use as the value of the element to add.
Implements
IDictionary<(Of <(<'TKey, TValue>)>)>..::..Add(TKey, TValue)Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | key is null. |
System..::..ArgumentException | An element with the same key already exists in the IDictionary<(Of <(<'TKey, TValue>)>)>. |
System..::..NotSupportedException | The IDictionary<(Of <(<'TKey, TValue>)>)> is read-only. |