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_CheckforCurrentVersionusingClickOnce_sn_142535_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2008-09-17  |  2KB  |  43 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>Check for Current Version using ClickOnce</Title>
  6.       <Author>Microsoft Corporation</Author>
  7.       <Description>Checks for current version using ClickOnce.</Description>
  8.       <Shortcut>appCOVersion</Shortcut>
  9.     </Header>
  10.     <Snippet>
  11.       <References>
  12.         <Reference>
  13.           <Assembly>System.Deployment.dll</Assembly>
  14.         </Reference>
  15.       </References>
  16.       <Imports>
  17.         <Import>
  18.           <Namespace>System.Deployment</Namespace>
  19.         </Import>
  20.       </Imports>
  21.       <Declarations>
  22.         <Object>
  23.           <ID>currentVersion</ID>
  24.           <Type>Version</Type>
  25.           <ToolTip>The Version object that stores the currently running version of the application.</ToolTip>
  26.           <Default>currentAppVersion</Default>
  27.         </Object>
  28.         <Object>
  29.           <ID>lastUpdate</ID>
  30.           <Type>Date</Type>
  31.           <ToolTip>The Date object that stores the date of the last update.</ToolTip>
  32.           <Default>lastUpdateDate</Default>
  33.         </Object>
  34.       </Declarations>
  35.       <Code Language="VB" Kind="method body"><![CDATA[    If My.Application.IsNetworkDeployed Then
  36.  
  37.         $currentVersion$ = My.Application.Deployment.CurrentVersion
  38.         $lastUpdate$ = My.Application.Deployment.TimeOfLastUpdateCheck
  39.  
  40.     End If]]></Code>
  41.     </Snippet>
  42.   </CodeSnippet>
  43. </CodeSnippets>