Jump to: navigation, search

Difference between revisions of "Activity:GetFromDictionary (Activity)"


(Created page with "{{ActivityInfoBox | title = Get from Dictionary | name = GetFromDictionary | image = | imagecaption = Activity GetFromDictionary | purpose = Get an item from a dictionary | c...")
 
 
(10 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+
 
}}
 
}}
The GetFromDictionary activity returns an item, specified by an unique key, from a given dictionary.
 
  
==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<String,Object> || In || The dictionary containing the items
+
| Dictionary || IDictionary<{{String_MSDN}},{{Object_MSDN}}> || In || The dictionary containing the items
 
|- align="left"
 
|- align="left"
| Key || String || In || The item's key
+
| Key || {{String_MSDN}} || In || The item's key
 
|- align="left"
 
|- align="left"
| Result|| {{Boolean}} || Out || True if item has been found
+
| Result|| {{Boolean_MSDN}} || Out || True if item has been found
 
|- align="left"
 
|- align="left"
| Value|| Object || Out || The item returned
+
| Value|| {{Object_MSDN}} || Out || The item returned
 
|}
 
|}
  
==Usage==
+
===Usage===
This activity removes 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.}}
 +
 
 +
<!-- DO NOT REMOVE THIS -->{{Activity/End}}<!-- DO NOT REMOVE THIS -->
  
 
==See also==
 
==See also==
 
* [[Workflow Designer]]
 
* [[Workflow Designer]]
  
[[Category:Workflows]]
 
 
[[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.

[edit]

Description

Get from Dictionary
Name GetFromDictionary
Purpose Get an item from a dictionary
Category Collection
Returns True if successfull
Version 2.1+

Arguments

Argument Type Direction Purpose
Dictionary IDictionary<String,Object> In The dictionary containing the items
Key String In The item's key
Result Boolean Out True if item has been found
Value Object Out The item returned

Usage

This activity gets and returns an item, specified by its unique key, from the given dictionary.

IC Hint square.pngUse GetFromDictionary<T> if the data type of the item is known.


See also