StoreContext.GetStoreProductForCurrentAppAsync 方法

定義

取得目前應用程式的 Microsoft Store 清單資訊,並提供可用來為目前使用者購買應用程式的方法存取權。

public:
 virtual IAsyncOperation<StoreProductResult ^> ^ GetStoreProductForCurrentAppAsync() = GetStoreProductForCurrentAppAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StoreProductResult> GetStoreProductForCurrentAppAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StoreProductResult> GetStoreProductForCurrentAppAsync();
function getStoreProductForCurrentAppAsync()
Public Function GetStoreProductForCurrentAppAsync () As IAsyncOperation(Of StoreProductResult)

傳回

在成功完成時,非同步作業會傳回 StoreProductResult 物件,其中包含目前應用程式的 Microsoft Store 清單資訊,以及任何相關的錯誤資訊。

屬性

備註

如需使用此方法的詳細資訊,包括程式碼範例,請參閱 取得應用程式和附加元件的產品資訊

適用於

另請參閱