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_DefineAnEnumeration_snippet_142723_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2008-06-12  |  1KB  |  44 lines

  1. ∩╗┐<?xml version="1.0" encoding="UTF-8"?>
  2. <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  3.   <CodeSnippet Format="1.0.0">
  4.     <Header>
  5.       <Title>Define an Enumeration</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Defines an enumeration.</Description>
  8.       <Shortcut>Enum</Shortcut>
  9.     </Header>
  10.     <Snippet>
  11.       <Imports>
  12.         <Import>
  13.           <Namespace>Microsoft.VisualBasic</Namespace>
  14.         </Import>
  15.       </Imports>
  16.       <Declarations>
  17.         <Literal>
  18.           <ID>Value1</ID>
  19.           <Type>
  20.           </Type>
  21.           <ToolTip>Replace with value of named constant.</ToolTip>
  22.           <Default>ValueOne</Default>
  23.         </Literal>
  24.         <Literal>
  25.           <ID>Value2</ID>
  26.           <Type>
  27.           </Type>
  28.           <ToolTip>Replace with value of named constant.</ToolTip>
  29.           <Default>ValueTwo</Default>
  30.         </Literal>
  31.         <Literal>
  32.           <ID>EnumName</ID>
  33.           <Type>String</Type>
  34.           <ToolTip>Replace with the enumeration name.</ToolTip>
  35.           <Default>MyEnum</Default>
  36.         </Literal>
  37.       </Declarations>
  38.       <Code Language="VB" Kind="method decl"><![CDATA[Enum $EnumName$
  39.      $Value1$
  40.      $Value2$
  41. End Enum]]></Code>
  42.     </Snippet>
  43.   </CodeSnippet>
  44. </CodeSnippets>