CurrentApp.ReportConsumableFulfillmentAsync(String, Guid) 方法

定義

通知 Microsoft Store 購買消費性附加元件 (也稱為應用程式內產品或 IAP) ,且使用者有權存取內容。

public:
 static IAsyncOperation<FulfillmentResult> ^ ReportConsumableFulfillmentAsync(Platform::String ^ productId, Platform::Guid transactionId);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<FulfillmentResult> ReportConsumableFulfillmentAsync(winrt::hstring const& productId, winrt::guid const& transactionId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<FulfillmentResult> ReportConsumableFulfillmentAsync(string productId, Guid transactionId);
function reportConsumableFulfillmentAsync(productId, transactionId)
Public Shared Function ReportConsumableFulfillmentAsync (productId As String, transactionId As Guid) As IAsyncOperation(Of FulfillmentResult)

參數

productId
String

Platform::String

winrt::hstring

要回報為已完成之消費性附加元件的產品識別碼。

transactionId
Guid

Platform::Guid

winrt::guid

購買消費性附加元件的交易識別碼。

傳回

代表消費性附加元件的 履行狀態的 FulfillmentResult 值。

屬性

備註

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

已購買一次以上消費性產品的每個實例都需要唯一的交易識別碼。

適用於