Difference between revisions of "Activity:GetFromDictionary (Activity)"
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | The GetFromDictionary activity gets and returns an item, specified by an unique key, from a given dictionary. If the data type of the returned item is known, the GetFromDictionary<T> activity, with a generic type argument, should be used. | ||
+ | |||
+ | =Description= | ||
{{ActivityInfoBox | {{ActivityInfoBox | ||
| title = Get from Dictionary | | title = Get from Dictionary | ||
Line 9: | Line 12: | ||
| version = 2.1+ | | version = 2.1+ | ||
}} | }} | ||
− | |||
− | ==Arguments== | + | ===Arguments=== |
{| class="wikitable sortable" | width = "50%" | {| class="wikitable sortable" | width = "50%" | ||
|- | |- | ||
! Argument !! Type !! Direction !! Purpose | ! Argument !! Type !! Direction !! Purpose | ||
|- align="left" | |- align="left" | ||
− | | Dictionary || IDictionary< | + | | Dictionary || IDictionary<{{String_MSDN}},{{Object_MSDN}}> || In || The dictionary containing the items |
|- align="left" | |- align="left" | ||
− | | Key || | + | | Key || {{String_MSDN}} || In || The item's key |
|- align="left" | |- align="left" | ||
− | | Result|| {{ | + | | Result|| {{Boolean_MSDN}} || Out || True if item has been found |
|- align="left" | |- align="left" | ||
− | | Value|| | + | | Value|| {{Object_MSDN}} || Out || The item returned |
|} | |} | ||
− | ==Usage== | + | ===Usage=== |
This activity gets and returns an item, specified by its unique key, from the given dictionary. | This activity gets and returns an item, specified by its unique key, from the given dictionary. | ||
{{Hint|Use GetFromDictionary<T> if the data type of the item is known.}} | {{Hint|Use GetFromDictionary<T> if the data type of the item is known.}} | ||
+ | |||
+ | <!-- DO NOT REMOVE THIS -->{{Activity/End}}<!-- DO NOT REMOVE THIS --> | ||
==See also== | ==See also== | ||
* [[Workflow Designer]] | * [[Workflow Designer]] | ||
− | |||
[[Category:Activities]] | [[Category:Activities]] |
Latest revision as of 09:59, 4 November 2015
The GetFromDictionary activity gets and returns an item, specified by an unique key, from a given dictionary. If the data type of the returned item is known, the GetFromDictionary<T> activity, with a generic type argument, should be used.