ProductLicense.ProductId 屬性

定義

取得附加元件的識別碼, (也稱為應用程式內產品或 IAP) 。 應用程式會使用此識別碼來取得客戶透過應用程式內購買時啟用的產品或功能相關資訊。

public:
 property Platform::String ^ ProductId { Platform::String ^ get(); };
winrt::hstring ProductId();
public string ProductId { get; }
var string = productLicense.productId;
Public ReadOnly Property ProductId As String

屬性值

String

Platform::String

winrt::hstring

合作夥伴中心中指定的識別碼,用來識別此附加元件。

備註

產品識別碼是應用程式用來識別附加元件的字串。 您在合作夥伴中心 提交附加元件 時輸入產品識別碼,其與描述、價格區間和存留期相關聯。 如需詳細資訊,請參閱 如何在程式碼中使用附加元件的產品識別碼。

適用於