StorePackageUpdate
StorePackageUpdate
StorePackageUpdate
StorePackageUpdate
Class
Definition
Provides info about a package for the current app that has an update available for download from the Windows Store.
public : sealed class StorePackageUpdate : IStorePackageUpdatepublic sealed class StorePackageUpdate : IStorePackageUpdatePublic NotInheritable Class StorePackageUpdate Implements IStorePackageUpdate// You can use this class in JavaScript.
- Attributes
| 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
Gets a value that indicates whether the package that has an update available for download from the Windows Store is a mandatory package, as specified by the developer in the Windows Dev Center dashboard.
public : PlatForm::Boolean Mandatory { get; }public bool Mandatory { get; }Public ReadOnly Property Mandatory As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean 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
Gets the package that has an update available for download from the Windows Store.
public : Package Package { get; }public Package Package { get; }Public ReadOnly Property Package As Package// You can use this property in JavaScript.
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