-api-id | -api-type |
---|---|
T:Windows.ApplicationModel.Store.LicenseInformation |
winrt class |
Provides access to the current app's license metadata.
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.
Store sample (), Trial app and in-app purchase sample (), Enable in-app product purchases