Share via


CurrentApp.GetAppReceiptAsync 方法

定義

要求購買應用程式及任何應用程式內產品的所有收據。 如需如何使用收據資訊的範例,請參閱 使用收據來驗證產品購買

public:
 static IAsyncOperation<Platform::String ^> ^ GetAppReceiptAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<winrt::hstring> GetAppReceiptAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<string> GetAppReceiptAsync();
function getAppReceiptAsync()
Public Shared Function GetAppReceiptAsync () As IAsyncOperation(Of String)

傳回

IAsyncOperation<String>

IAsyncOperation<Platform::String>

IAsyncOperation<winrt::hstring>

XML 格式字串,其中包含購買應用程式及任何應用程式內產品的所有收據資訊。

屬性

備註

如需收據內容的詳細資訊,請參閱 使用收據來驗證產品購買

適用於