Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.75 KB

licenseinformation.md

File metadata and controls

26 lines (18 loc) · 1.75 KB
-api-id -api-type
T:Windows.ApplicationModel.Store.LicenseInformation
winrt class

Windows.ApplicationModel.Store.LicenseInformation

-description

Provides access to the current app's license metadata.

-remarks

For app trial versions of an app, IsActive will return true so long as the trial hasn’t expired. During the trial period the IsTrial returns true; returning false when the customer upgrades to the full version of the app.

You access this object through the LicenseInformation property of the CurrentAppSimulator object during testing, or the LicenseInformation property of the CurrentApp object when the app is distributed through the Microsoft Store.

Note

The CurrentApp object obtains its data from the Microsoft Store, which requires that you have a Microsoft Store developer account and that the app has been published in the Microsoft Store. If you don't have a Microsoft Store developer account, you can test the functions of this class by using the CurrentAppSimulator.

-examples

-see-also

Store sample (), Trial app and in-app purchase sample (), Enable in-app product purchases