Skip to main content

Windows Dev Center

ProductLicense.ProductId | productId property

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;

public string ProductId { get; }

Public ReadOnly Property ProductId As String

public:
property String^ ProductId { 
   String^ get();
}

Property value

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

The ID specified in the Dashboard to identify this in-app product.

Remarks

The Product ID is the string that the app uses to identify the in-app offer. The Product ID is entered in the Advance features page of the Dashboard where it is associated with the description, price tier and lifetime. The same Product ID is used in the app to

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