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_CompilerDirectiveIf_snippet_142579_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2008-09-17  |  1KB  |  31 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>Build Only Selected Portions of the Source Code by Using #If</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Uses the #If compiler directive to control which block of code is compiled into the assembly.</Description>
  8.       <Shortcut>ifCond</Shortcut>
  9.     </Header>
  10.     <Snippet>
  11.       <Imports>
  12.         <Import>
  13.           <Namespace>Microsoft.VisualBasic</Namespace>
  14.         </Import>
  15.       </Imports>
  16.       <Declarations>
  17.         <Literal>
  18.           <ID>condition</ID>
  19.           <Type>Boolean</Type>
  20.           <ToolTip>The condition which determines whether the code within the scope of the #If construct is included in compilation.</ToolTip>
  21.           <Default>True</Default>
  22.         </Literal>
  23.       </Declarations>
  24.       <Code Language="VB" Kind="method body"><![CDATA[#If $condition$ Then
  25.  
  26. #Else
  27.  
  28. #End If]]></Code>
  29.     </Snippet>
  30.   </CodeSnippet>
  31. </CodeSnippets>