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_IndexIntoStronglyTypedDictionaryByKey_s_142568_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2008-09-17  |  1KB  |  44 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>Index into a strongly typed dictionary using a key.</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Indexes into strongly typed dictionary by using a key.</Description>
  8.       <Shortcut>colIndex</Shortcut>
  9.     </Header>
  10.     <Snippet>
  11.       <Imports>
  12.         <Import>
  13.           <Namespace>System.Collections.Generic</Namespace>
  14.         </Import>
  15.       </Imports>
  16.       <Declarations>
  17.     <Literal>
  18.           <ID>itemVar</ID>
  19.           <ToolTip>Replace with the identifier for the item variable.</ToolTip>
  20.           <Default>capitol</Default>
  21.         </Literal>
  22.           <Literal>
  23.               <ID>itemType</ID>
  24.               <ToolTip>Replace with the type of items in the collection.</ToolTip>
  25.               <Default>String</Default>
  26.           </Literal>
  27.           <Object>
  28.               <ID>storageVar</ID>
  29.               <ToolTip>Replace with the collection object to index into.</ToolTip>
  30.               <Default>stateCaps</Default>
  31.               <Type>System.Collections.IDictionary</Type>
  32.           </Object>
  33.           <Literal>
  34.               <ID>key</ID>
  35.               <ToolTip>Replace with the key at which the value is stored.</ToolTip>
  36.               <Default>"NM"</Default>
  37.           </Literal>
  38.       </Declarations>
  39.       <Code Language="VB" Kind="method body">
  40.           <![CDATA[Dim $itemVar$ As $itemType$ = $storageVar$.Item($key$)]]>
  41.       </Code>
  42.   </Snippet>
  43. </CodeSnippet>
  44. </CodeSnippets>