AddToDictionary<>
The AddToDictionary<> activity maps a key type (TKey) to a value type (TValue) in the dictionary. You select the .NET data type for the TKey and TValue, for example, Int32, String, Boolean, Array, Object, etc.
This workflow example uses the following variable definitions:
Properties
Property | Value | Required | Notes |
---|---|---|---|
Dictionary | InArgument<IDictionary<selected data type,selected data type>>
|
Yes | Specify the Dictionary using a VB expression or variable. Refer to the image below for the Variable type selection. |
DisplayName | String
|
No | Specify a name for the activity or accept the default. |
Key | InArgument<selected data type>
|
Yes | Specify the Key using a VB expression or variable. Select the data type when you add the activity to the workflow. |
Value | InArgument<selected data type>
|
Yes | Specify the Value using a VB expression or variable. Select the data type when you add the activity to the workflow. |
To see how this activity can be used in a workflow, refer to