LicenseManager
LicenseManager
LicenseManager
LicenseManager
Class
Definition
Provides members for managing license info for apps.
public : static class LicenseManagerpublic static class LicenseManagerPublic Static Class LicenseManager// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v3)
|
| Capabilities |
storeLicenseManagement
|
Remarks
Note
This class requires the storeLicenseManagement restricted capability.
Methods
AddLicenseAsync(IBuffer) AddLicenseAsync(IBuffer) AddLicenseAsync(IBuffer) AddLicenseAsync(IBuffer)
Installs the specified app license.
public : static IAsyncAction AddLicenseAsync(IBuffer license)public static IAsyncAction AddLicenseAsync(IBuffer license)Public Static Function AddLicenseAsync(license As IBuffer) As IAsyncAction// You can use this method in JavaScript.
An object that represents the installation operation.
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v3)
|
| Capabilities |
storeLicenseManagement
|
GetSatisfactionInfosAsync(IIterable, IIterable)
GetSatisfactionInfosAsync(IIterable, IIterable)
GetSatisfactionInfosAsync(IIterable, IIterable)
GetSatisfactionInfosAsync(IIterable, IIterable)
Gets license entitlement info for the specified products.
public : static IAsyncOperation<LicenseSatisfactionResult> GetSatisfactionInfosAsync(IIterable<PlatForm::String> contentIds, IIterable<PlatForm::String> keyIds)public static IAsyncOperation<LicenseSatisfactionResult> GetSatisfactionInfosAsync(IEnumerable<String> contentIds, IEnumerable<String> keyIds)Public Static Function GetSatisfactionInfosAsync(contentIds As IEnumerable<String>, keyIds As IEnumerable<String>) As IAsyncOperation( Of LicenseSatisfactionResult )// You can use this method in JavaScript.
- contentIds
- IIterable<PlatForm::String> IEnumerable<String> IEnumerable<String> IEnumerable<String>
The content IDs of the products for which to get license entitlement info.
- keyIds
- IIterable<PlatForm::String> IEnumerable<String> IEnumerable<String> IEnumerable<String>
The key IDs of the products for which to get license entitlement info.
An asynchronous operation that, on successful completion, returns a LicenseSatisfactionResult object that provides license entitlement info for the specified products.
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v3)
|
| Capabilities |
storeLicenseManagement
|
RefreshLicensesAsync(LicenseRefreshOption) RefreshLicensesAsync(LicenseRefreshOption) RefreshLicensesAsync(LicenseRefreshOption) RefreshLicensesAsync(LicenseRefreshOption)
Refreshes license info for app licenses on the current device.
public : static IAsyncAction RefreshLicensesAsync(LicenseRefreshOption refreshOption)public static IAsyncAction RefreshLicensesAsync(LicenseRefreshOption refreshOption)Public Static Function RefreshLicensesAsync(refreshOption As LicenseRefreshOption) As IAsyncAction// You can use this method in JavaScript.
A LicenseRefreshOption that indicates whether to refresh all app licenses on the device or only the licenses for currently running apps.
An object that represents the asynchronous operation.
| Device family |
Windows 10 Creators Update (introduced v10.0.15063.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v4)
|
| Capabilities |
storeLicenseManagement
|