StoreLicense StoreLicense StoreLicense StoreLicense StoreLicense Class


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

public : sealed class StoreLicense
struct winrt::Windows::Services::Store::StoreLicense
public sealed class StoreLicense
Public NotInheritable Class StoreLicense
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Services.Store.StoreContract (introduced v1)


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.


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.