﻿<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>Check for Update to ClickOnce Application</Title>
      <Author>Microsoft Corporation</Author>
      <Description>Checks whether updates to the application are  available for download.</Description>
      <Shortcut>appCheckUp</Shortcut>
    </Header>
    <Snippet>
      <References>
        <Reference>
          <Assembly>System.Deployment.dll</Assembly>
        </Reference>
      </References>
      <Imports>
        <Import>
          <Namespace>System.Deployment</Namespace>
        </Import>
      </Imports>
      <Code Language="VB" Kind="method body"><![CDATA[If My.Application.IsNetworkDeployed() 
	If My.Application.Deployment.CheckForUpdate() Then

 	End If

End If]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>