StoreAppLicense StoreAppLicense StoreAppLicense StoreAppLicense StoreAppLicense Class

Definition

Provides license info for the current app, including licenses for products that are offered by the app.

public : sealed class StoreAppLicense : IStoreAppLicense, IStoreAppLicense2
struct winrt::Windows::Services::Store::StoreAppLicense : IStoreAppLicense, IStoreAppLicense2
public sealed class StoreAppLicense : IStoreAppLicense, IStoreAppLicense2
Public NotInheritable Class StoreAppLicense Implements IStoreAppLicense, IStoreAppLicense2
// 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

The StoreContext.GetAppLicenseAsync method returns an object of this type.

Properties

AddOnLicenses AddOnLicenses AddOnLicenses AddOnLicenses AddOnLicenses

Gets the collection of licenses for durable add-ons for which the user has entitlements to use. This property does not include licenses for consumable add-ons.

ExpirationDate ExpirationDate ExpirationDate ExpirationDate ExpirationDate

Gets the expiration date and time for the app license.

ExtendedJsonData ExtendedJsonData ExtendedJsonData ExtendedJsonData ExtendedJsonData

Gets complete license data in JSON format.

IsActive IsActive IsActive IsActive IsActive

Gets a value that indicates whether the license is valid and provides the current user an entitlement to use the app.

IsDiscLicense IsDiscLicense IsDiscLicense IsDiscLicense IsDiscLicense

Gets a value that indicates whether the current license was acquired from a disc-based installation.

IsTrial IsTrial IsTrial IsTrial IsTrial

Gets a value that indicates whether the license is a trial license.

IsTrialOwnedByThisUser IsTrialOwnedByThisUser IsTrialOwnedByThisUser IsTrialOwnedByThisUser IsTrialOwnedByThisUser

Gets a value that indicates whether the current user has an entitlement for the usage-limited trial that is associated with this app license.

SkuStoreId SkuStoreId SkuStoreId SkuStoreId SkuStoreId

Gets the Store ID of the licensed app SKU from the Microsoft Store catalog.

TrialTimeRemaining TrialTimeRemaining TrialTimeRemaining TrialTimeRemaining TrialTimeRemaining

Gets the remaining time for the usage-limited trial that is associated with this app license.

TrialUniqueId TrialUniqueId TrialUniqueId TrialUniqueId TrialUniqueId

Gets a unique ID that identifies the combination of the current user and the usage-limited trial that is associated with this app license.