StoreLicense Class

Definition

Provides license info for a durable add-on that is associated with the current app.

public ref class StoreLicense sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Services.Store.StoreContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class StoreLicense sealed
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Services.Store.StoreContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class StoreLicense
Public NotInheritable Class StoreLicense
Inheritance
StoreLicense
Attributes

Windows 10 requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Services.Store.StoreContract (introduced in v1.0)

Remarks

To retrieve StoreLicense objects for the durable add-ons for the current app, use the StoreAppLicense.AddOnLicenses property. This property contains only the add-on licenses that are still valid and provide the current user with an entitlement to use the add-on. When an add-on license expires or is longer valid, it will no longer be available in the StoreAppLicense.AddOnLicenses collection.

Properties

ExpirationDate

Gets the expiration date and time for the add-on license.

ExtendedJsonData

Gets complete license data in JSON format.

InAppOfferToken

Gets in the product ID for the add-on.

IsActive

This property is reserved for future use, and it is not intended to be used in the current release. Currently, it always returns true.

SkuStoreId

Gets the Store ID of the licensed add-on SKU from the Microsoft Store catalog.

Applies to