StoreAppLicense StoreAppLicense StoreAppLicense StoreAppLicense StoreAppLicense Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Provides license info for the current app, including licenses for products that are offered by the app.

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

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.