StoreLicense StoreLicense StoreLicense StoreLicense StoreLicense Class

Definition

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

public : sealed class StoreLicense : IStoreLicense
struct winrt::Windows::Services::Store::StoreLicense : IStoreLicense
public sealed class StoreLicense : IStoreLicense
Public NotInheritable Class StoreLicense Implements IStoreLicense
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Services.Store.StoreContract (introduced v1)

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 ExpirationDate ExpirationDate ExpirationDate ExpirationDate

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

ExtendedJsonData ExtendedJsonData ExtendedJsonData ExtendedJsonData ExtendedJsonData

Gets complete license data in JSON format.

InAppOfferToken InAppOfferToken InAppOfferToken InAppOfferToken InAppOfferToken

Gets in the product ID for the add-on.

IsActive IsActive IsActive IsActive 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 SkuStoreId SkuStoreId SkuStoreId SkuStoreId

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