home *** CD-ROM | disk | FTP | other *** search
/ ftp.tcs3.com / ftp.tcs3.com.tar / ftp.tcs3.com / DRIVERS / Audio / Office2010 / InfoPath.en-us / InfLR.cab / FL_IteratingThroughADictionary_snippet_142571_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2008-09-17  |  1KB  |  42 lines

  1. <?xml version="1.0"?>
  2. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  3.   <CodeSnippet Format="1.0.0">
  4.     <Header>
  5.       <Title>Iterate through a dictionary.</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Iterates through all the items in a dictionary.</Description>
  8.       <Shortcut>colIterDict</Shortcut>
  9.     </Header>
  10.     <Snippet>
  11.       <Imports>
  12.         <Import>
  13.           <Namespace>Microsoft.VisualBasic</Namespace>
  14.         </Import>
  15.       </Imports>
  16.       <Declarations>
  17.         <Literal>
  18.           <ID>itemVar</ID>
  19.           <ToolTip>Replace with an identifier for an item in the collection.</ToolTip>
  20.           <Default>capitol</Default>
  21.         </Literal>
  22.         <Literal>
  23.           <ID>itemType</ID>
  24.           <ToolTip>Replace with the type of an items in the collection.</ToolTip>
  25.           <Default>String</Default>
  26.         </Literal>
  27.         <Object>
  28.             <ID>dicVar</ID>
  29.             <Type>IDictionary(Of TKey, TValue)</Type>
  30.             <ToolTip>Replace with the dictionary variable to iterate over.</ToolTip>
  31.             <Default>stateCaps</Default>
  32.         </Object>
  33.       </Declarations>
  34.       <Code Language="VB" Kind="method body">
  35.           <![CDATA[        ' Iterate through a dictionary
  36.         For Each $itemVar$ As $itemType$ In $dicVar$.Values
  37.  
  38.         Next
  39. ]]></Code>
  40.     </Snippet>
  41.   </CodeSnippet>
  42. </CodeSnippets>