Share via


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

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

Fields

Name Value Description
Unknown 0

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

NoUpdates 1

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

Available 2

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

Required 3

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

Error 4

This value is returned when an error is encountered.

Examples

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

Applies to

See also