MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ProductLicense.ProductId | productId property

[ Updated for UWP apps on Windows 10. For Windows 8.x articles, see the archive ]

Gets the ID of an in-app product. This ID is used by the app to get info about the product or feature that is enabled when the customer buys it through an in-app purchase.

Syntax


var productId = productLicense.productId;

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The ID specified in the Windows Dev Center dashboard to identify this in-app product.

Remarks

The Product ID is the string that the app uses to identify the in-app product. The Product ID is entered when submitting your IAP in the Windows Dev Center dashboard, where it is associated with the description, price tier and lifetime.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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

ProductLicense

 

 

Show:
© 2016 Microsoft