UpdateCheckInfo Class

 

Represents detailed update information obtained through a call to CheckForDetailedUpdate.

Namespace:   System.Deployment.Application
Assembly:  System.Deployment (in System.Deployment.dll)

System.Object
  System.Deployment.Application.UpdateCheckInfo

type UpdateCheckInfo = class end

NameDescription
System_CAPS_pubpropertyAvailableVersion

Gets the version number of the latest uninstalled version.

System_CAPS_pubpropertyIsUpdateRequired

Gets a value indicating whether the update must be installed.

System_CAPS_pubpropertyMinimumRequiredVersion

Gets the minimum version that the user must have installed on the computer.

System_CAPS_pubpropertyUpdateAvailable

Gets whether an uninstalled update is available.

System_CAPS_pubpropertyUpdateSizeBytes

Gets the size of the available update.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

With UpdateCheckInfo, you can decide whether to upgrade your ClickOnce application based on information about the newest version. UpdateAvailable will return a Boolean value indicating whether there is a new update at all. The AvailableVersion property provides the version number of the new version, while MinimumRequiredVersion provides the earliest version that the user should have installed. IsUpdateRequired expresses whether the latest available update is required of the user. Finally, UpdateSizeBytes expresses the total size of the update.

System_CAPS_noteNote

Visual Studio adds the <deploymentProvider> element to the manifest only if the application is set to check for updates, so you either have to check The application should check for updates or specify an update URL in Update location in the Application Updates Dialog Box.

The following code example uses UpdateAvailable to determine if there is a new application update, and IsUpdateRequired to determine whether to ask the user to install the update.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: