Skip to main content
LicenseInformation.ProductLicenses | productLicenses property

Applies to Windows and Windows Phone

Gets the associative list of licenses for in-app products that a user is currently entitled to.

Important  

The returned list of ProductLicense objects will always represent all in-app products that a user is currently entitled to (isActive = true). However, this list may or may not also contain ProductLicense objects for products that a user is not currently entitled to (isActive = false).

Call ProductLicense.isActive to determine if a user is entitled to an in-app product.

Syntax


var productLicenses = licenseInformation.productLicenses;

public IReadOnlyDictionary<String, ProductLicense> ProductLicenses { get; }

Public ReadOnly Property ProductLicenses As IReadOnlyDictionary(Of String, ProductLicense)

public:
property IMapView<String, ProductLicense>^ ProductLicenses { 
   IMapView<String, ProductLicense>^ get();
}

Property value

Type: IMapView<String, ProductLicense> [JavaScript/C++] | System.Collections.Generic.IReadOnlyDictionary<String, ProductLicense> [.NET]

The associative list of feature licenses.

Remarks

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

See also

LicenseInformation