-api-id | -api-type |
---|---|
P:Windows.Services.Store.StorePackageUpdate.Mandatory |
winrt property |
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 Partner Center.
True if the package is a mandatory package; otherwise, false.
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.