Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.64 KB

storecontext_getapplicenseasync_1472711008.md

File metadata and controls

26 lines (18 loc) · 1.64 KB
-api-id -api-type
M:Windows.Services.Store.StoreContext.GetAppLicenseAsync
winrt method

Windows.Services.Store.StoreContext.GetAppLicenseAsync

-description

Gets license info for the current app, including licenses for add-ons for the current app.

-returns

An asynchronous operation that, on successful completion, returns a StoreAppLicense object that contains license info for the current app, including add-on licenses.

-remarks

The StoreAppLicense object returned by this method provides access to licenses for add-ons and other info, such as whether the license is active. If this method is called while the device is offline, it returns the cached value of the current licenses on the device. The OfflineLicensesChanged event is raised when the status of the app's license changes.

For more information about using this method, including code examples, see Get license info for apps and add-ons and Implement a trial version of your app.

-examples

-see-also

StoreAppLicense, Get license info for apps and add-ons, Implement a trial version of your app, Store sample