LocationMy.Application.Deployment SyntaxDim result As System.Deployment.Application. _ ApplicationDeployment = My.Application.Deployment DescriptionThe Deployment property returns the application's ClickOnce deployment object. This object provides features that let you update the application's installation. It includes features to check for the presence of an update and features that let you download updates interactively or in the background. Public MembersThe returned ApplicationDeployment object includes the following notable public members.
Usage at a Glance
ExampleThis sample code checks for an update. Public Sub CheckSoftwareUpdate( ) ' ----- Ask the user about updating the software. If (My.Application.IsNetworkDeployed = False) Then Exit Sub Dim updateInfo As System.Deployment.Application. _ ApplicationDeployment = My.Application.Deployment Dim details As System.Deployment.Application.UpdateCheckInfo details = updateInfo.CheckForDetailedUpdate( ) If (details.UpdateAvailable = True) Then If (MsgBox("Version " & details.AvailableVersion.ToString & _ " is available for download. Update now?", _ MsgBoxStyle.Question Or MsgBoxStyle.YesNo, "Update") _ = MsgBoxResult.Yes) Then ' ----- Continue with the update. updateInfo.Update( ) End If End If End Sub Related Framework Entries
See AlsoApplication Object, IsNetworkDeployed Property |