PackageUpdateAvailability Enum

Definition

An enum that indicates if an application has an update, and if the update is required.

public enum class PackageUpdateAvailability
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
enum class PackageUpdateAvailability
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
public enum PackageUpdateAvailability
var value = Windows.ApplicationModel.PackageUpdateAvailability.unknown
Public Enum PackageUpdateAvailability
Inheritance
PackageUpdateAvailability
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Fields

Available 2

This value is returned when an update for the application is available, and the update is not required.

Error 4

This value is returned when an error is encountered.

NoUpdates 1

This value is returned when no updates are available for the application.

Required 3

This value is returned when an update for the application is available, and the update is required.

Unknown 0

This value is returned when this function is called on a package that does not have an AppInstaller file association.

Examples

For related code examples, see the Package.CheckUpdateAvailabilityAsync article.

Applies to

See also