StoreLicense Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 final
[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
- Attributes
Windows 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. |