StorePackageUpdate StorePackageUpdate StorePackageUpdate StorePackageUpdate StorePackageUpdate Class

Definition

Provides info about a package for the current app that has an update available for download from the Microsoft Store.

public : sealed class StorePackageUpdate : IStorePackageUpdate
struct winrt::Windows::Services::Store::StorePackageUpdate : IStorePackageUpdate
public sealed class StorePackageUpdate : IStorePackageUpdate
Public NotInheritable Class StorePackageUpdate Implements IStorePackageUpdate
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Services.Store.StoreContract (introduced v1)

Remarks

The StoreContext.GetAppAndOptionalStorePackageUpdatesAsync method returns objects of this type. For more information, including a code example, see Download and install package updates for your app.

Properties

Mandatory Mandatory Mandatory Mandatory Mandatory

Gets a value that indicates whether the package that has an update available for download from the Microsoft Store is a mandatory package, as specified by the developer in the Windows Dev Center dashboard.

public : Platform::Boolean Mandatory { get; }
bool Mandatory();
public bool Mandatory { get; }
Public ReadOnly Property Mandatory As bool
var bool = storePackageUpdate.mandatory;
Value
bool bool bool

True if the package is a mandatory package; otherwise, false.

Remarks

The mandatory status of a package is not enforced by Microsoft, and the OS does not provide a UI to indicate to users that a mandatory app must be installed. Developers are intended to use the mandatory setting to enforce mandatory app updates in their own code that uses GetAppAndOptionalStorePackageUpdatesAsync to determine which packages have updates available and RequestDownloadStorePackageUpdatesAsync or RequestDownloadAndInstallStorePackageUpdatesAsync to download or install the updated packages.

For more information about using this property, including a code example, see Download and install package updates for your app.

See Also

Package Package Package Package Package

Gets the package that has an update available for download from the Microsoft Store.

public : Package Package { get; }
Package Package();
public Package Package { get; }
Public ReadOnly Property Package As Package
var package = storePackageUpdate.package;
Value
Package Package Package

An object that represents the package that has an update available.

Remarks

For more information about using this property, including a code example, see Download and install package updates for your app.

See Also

See Also