StoreLicense
StoreLicense
StoreLicense
StoreLicense
Class
Definition
Provides license info for an add-on that is associated with the current app.
public : sealed class StoreLicense : IStoreLicensepublic sealed class StoreLicense : IStoreLicensePublic NotInheritable Class StoreLicense Implements IStoreLicense// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Services.Store.StoreContract (introduced v1)
|
Remarks
The StoreAppLicense.AddOnLicenses property returns objects of this type.
Properties
ExpirationDate ExpirationDate ExpirationDate ExpirationDate
Gets the expiration date and time for the add-on license.
public : DateTime ExpirationDate { get; }public DateTimeOffset ExpirationDate { get; }Public ReadOnly Property ExpirationDate As DateTimeOffset// You can use this property in JavaScript.
- Value
- DateTime DateTimeOffset DateTimeOffset DateTimeOffset
The expiration date and time for the add-on license.
ExtendedJsonData ExtendedJsonData ExtendedJsonData ExtendedJsonData
Gets complete license data in JSON format.
public : PlatForm::String ExtendedJsonData { get; }public string ExtendedJsonData { get; }Public ReadOnly Property ExtendedJsonData As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
Complete license data in JSON format.
Remarks
Use the ExtendedJsonData property to access the complete data for the StoreLicense object as a JSON-formatted string in your code. For more information about the structure of the data, see Data schemas for Store products.
- See Also
InAppOfferToken InAppOfferToken InAppOfferToken InAppOfferToken
Gets in the product ID for the add-on.
public : PlatForm::String InAppOfferToken { get; }public string InAppOfferToken { get; }Public ReadOnly Property InAppOfferToken As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The in-app offer token for the add-on, if a token exists.
Remarks
This property returns the product ID that you gave the add-on when you submitted the add-on in the Windows Dev Center dashboard. For more information, see How to use product IDs for add-ons in your code.
IsActive IsActive IsActive IsActive
Gets a value that indicates whether the add-on license is active.
public : PlatForm::Boolean IsActive { get; }public bool IsActive { get; }Public ReadOnly Property IsActive As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
True if the license is active; otherwise, false.
SkuStoreId SkuStoreId SkuStoreId SkuStoreId
Gets the Store ID of the licensed add-on SKU from the Windows Store catalog.
public : PlatForm::String SkuStoreId { get; }public string SkuStoreId { get; }Public ReadOnly Property SkuStoreId As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The Store ID of the licensed add-on SKU from the Windows Store catalog.