Description
Confirms if the specified value exists within the specified Dictionary object.
Attributes
Output
Result - True or False boolean result if the specified value exists within the Dictionary object.
Input
Dictionary - The Dictionary object from which the specified value would be checked.
Value - The value of the data to be checked.
Common
ContinueOnError - The Boolean value to specify whether to continue executing the next activities even if there is an error thrown on this activity.
Misc
DisplayName - Renames the activity.
Example
- Create a Dictionary<Int32,Int32> variable and name it dictionary.
- Add an Assign activity inside the initial Sequence.
- In the Assign To field, add the dictionary variable.
- In the Assign Value field, write new Dictionary(Of Int32, Int32) since its default value is null.
- After the Assign activity, add an Add To Dictionary activity.
- In the Add to Dictionary Dictionary field, add the dictionary variable.
- In the Add to Dictionary Key field, write 1.
- In the Add to Dictionary Value field, write 15. This means the Key 1 has the value of 15.
- Create a Boolean variable called output.
- After the Add to Dictionary, add a Value Exists In Dictionary.
- In the Value Exist In Dictionary Result field, add the output variable.
- In the Value Exist In Dictionary Dictionary field, add the dictionary variable.
- In the Value Exist In Dictionary Value, write 15.
- After the Value Exist In Dictionary, add a Write Line activity.
- In the Write Line Text field, type output.ToString.
The use case should look as the following screenshot:
This should be the result in the Output panel: