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 : IStoreAppLicensepublic sealed class StoreAppLicense : IStoreAppLicensePublic NotInheritable Class StoreAppLicense Implements IStoreAppLicense// You can use this class in JavaScript.
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

Gets the collection of licenses for add-ons that can be used offline (typically durable add-ons), for which the user has entitlements to use. This property does not include licenses for consumable add-ons.

public : IMapView<string, StoreLicense> AddOnLicenses { get; }public IReadOnlyDictionary<string, StoreLicense> AddOnLicenses { get; }Public ReadOnly Property AddOnLicenses As IReadOnlyDictionary<string, StoreLicense>// You can use this property in JavaScript.
Value
IMapView<PlatForm::String, StoreLicense> IReadOnlyDictionary<string, StoreLicense> IReadOnlyDictionary<string, StoreLicense> IReadOnlyDictionary<string, StoreLicense>

A map of key and value pairs, where each key is the Store ID of an add-on SKU from the Windows Store catalog and each value is a StoreLicense object that contains license info for the add-on.

ExpirationDate ExpirationDate ExpirationDate ExpirationDate

Gets the expiration date and time for the app license.

public : DateTime ExpirationDate { get; }public DateTimeOffset ExpirationDate { get; }Public ReadOnly Property ExpirationDate As DateTimeOffset// You can use this property in JavaScript.
Value
DateTime DateTimeOffset DateTimeOffset DateTimeOffset

The expiration date and time for the app license, relative to the system clock.

ExtendedJsonData ExtendedJsonData ExtendedJsonData ExtendedJsonData

Gets complete license data in JSON format.

public : PlatForm::String ExtendedJsonData { get; }public string ExtendedJsonData { get; }Public ReadOnly Property ExtendedJsonData As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

A JSON-formatted string that contains the complete license data.

Remarks

Use the ExtendedJsonData property to access the complete data for the StoreAppLicense object as a JSON-formatted string in your code. For more information about the structure of the data, see Data schemas for Store products.

See Also

IsActive IsActive IsActive IsActive

Gets a value that indicates whether the license is active.

public : PlatForm::Boolean IsActive { get; }public bool IsActive { get; }Public ReadOnly Property IsActive As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

True if the license is active; otherwise, false.

IsTrial IsTrial IsTrial IsTrial

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

public : PlatForm::Boolean IsTrial { get; }public bool IsTrial { get; }Public ReadOnly Property IsTrial As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

True if the license is a trial license; otherwise, false.

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.

public : PlatForm::Boolean IsTrialOwnedByThisUser { get; }public bool IsTrialOwnedByThisUser { get; }Public ReadOnly Property IsTrialOwnedByThisUser As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

True if the current user has an entitlement for the trial; otherwise, false.

Remarks

This property is intended to be used by developers who have configured their app as a usage-limited trial in the Windows Dev Center dashboard. Usage-limited trials are not available to all developer accounts.

SkuStoreId SkuStoreId SkuStoreId SkuStoreId

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

public : PlatForm::String SkuStoreId { get; }public string SkuStoreId { get; }Public ReadOnly Property SkuStoreId As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The Store ID of a the licensed app SKU from the Windows Store catalog.

TrialTimeRemaining TrialTimeRemaining TrialTimeRemaining TrialTimeRemaining

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

public : TimeSpan TrialTimeRemaining { get; }public TimeSpan TrialTimeRemaining { get; }Public ReadOnly Property TrialTimeRemaining As TimeSpan// You can use this property in JavaScript.
Value
TimeSpan TimeSpan TimeSpan TimeSpan

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

Remarks

This property is intended to be used by developers who have configured their app as a usage-limited trial in the Windows Dev Center dashboard. Usage-limited trials are not available to all developer accounts.

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.

public : PlatForm::String TrialUniqueId { get; }public string TrialUniqueId { get; }Public ReadOnly Property TrialUniqueId As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

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

Remarks

This property is intended to be used by developers who have configured their app as a usage-limited trial in the Windows Dev Center dashboard. Usage-limited trials are not available to all developer accounts.