0 out of 3 rated this helpful - Rate this topic

ProductLicense class

Applies to Windows and Windows Phone

Provides info about a license that is associated with an in-app offer.

Syntax


public ref class ProductLicense sealed 

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]

Members

The ProductLicense class has these types of members:

Properties

The ProductLicense class has these properties.

PropertyAccess typeDescription

ExpirationDate

Read-onlyGets the expiration date and time of the license.

IsActive

Read-onlyGets the value that indicates whether the feature's license is active.

IsConsumable

Read-onlyWindows Phone only. Gets whether this product is a consumable. A consumable product is a product that can be purchased, used, and purchased again.

ProductId

Read-onlyGets the ID of an app's in-app offer.

 

Remarks

You access this object by picking an element of the collection that the ProductLicenses property of the LicenseInformation object returns as the following code example shows.

No code example is currently available or this language may not be supported.

Examples

Get the expiration date of an in-app offer.

No code example is currently available or this language may not be supported.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8

Namespace

Windows.ApplicationModel.Store
Windows::ApplicationModel::Store [C++]

Metadata

Windows.winmd

See also

Trial app and in-app purchase sample
How to enable in-app purchases from your app
The in-app purchase experience for a customer

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.