StoreContext.GetStoreProductsAsync メソッド

定義

オーバーロード

GetStoreProductsAsync(IIterable<String>, IIterable<String>)

現在のアプリに関連付けられている指定した製品の Microsoft Store 登録情報を取得します。

GetStoreProductsAsync(IIterable<String>, IIterable<String>, StoreProductOptions)

クエリにフィルターを使用するオプションを使用して、現在のアプリに関連付けられている指定された製品の Microsoft Store 登録情報を取得します。

GetStoreProductsAsync(IIterable<String>, IIterable<String>)

現在のアプリに関連付けられている指定した製品の Microsoft Store 登録情報を取得します。

public:
 virtual IAsyncOperation<StoreProductQueryResult ^> ^ GetStoreProductsAsync(IIterable<Platform::String ^> ^ productKinds, IIterable<Platform::String ^> ^ storeIds) = GetStoreProductsAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StoreProductQueryResult> GetStoreProductsAsync(IIterable<winrt::hstring> const& productKinds, IIterable<winrt::hstring> const& storeIds);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StoreProductQueryResult> GetStoreProductsAsync(IEnumerable<string> productKinds, IEnumerable<string> storeIds);
function getStoreProductsAsync(productKinds, storeIds)
Public Function GetStoreProductsAsync (productKinds As IEnumerable(Of String), storeIds As IEnumerable(Of String)) As IAsyncOperation(Of StoreProductQueryResult)

パラメーター

productKinds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

リスト情報を取得する製品の種類を指定する文字列の配列。 サポートされている文字列値の一覧についてはProductKind プロパティをご覧ください。

storeIds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

リスト情報を取得する製品のストア ID 文字列の配列。

戻り値

正常に完了すると、指定された製品の一覧情報と関連するエラー情報を含む StoreProductQueryResult オブジェクトを返す非同期操作。

属性

注釈

このメソッドは、現在のアプリ内で製品が現在購入可能かどうかに関係なく、現在のアプリに関連付けられている指定された製品の一覧情報を返します。 現在のアプリ内から現在購入できるすべての製品の情報を取得するには、代わりに GetStoreProductsAsync オーバーロードまたは GetAssociatedStoreProductsAsync メソッドを使用します。

製品のストア ID はパートナー センターで使用でき、製品を表す StoreProduct の StoreId プロパティによっても返されます。 詳細については、「 ストア ID」を参照してください。

コード例など、このメソッドの使用方法の詳細については、「 アプリとアドオンの製品情報を取得する」を参照してください。

こちらもご覧ください

適用対象

GetStoreProductsAsync(IIterable<String>, IIterable<String>, StoreProductOptions)

クエリにフィルターを使用するオプションを使用して、現在のアプリに関連付けられている指定された製品の Microsoft Store 登録情報を取得します。

public:
 virtual IAsyncOperation<StoreProductQueryResult ^> ^ GetStoreProductsAsync(IIterable<Platform::String ^> ^ productKinds, IIterable<Platform::String ^> ^ storeIds, StoreProductOptions ^ storeProductOptions) = GetStoreProductsAsync;
/// [Windows.Foundation.Metadata.Overload("GetStoreProductsWithOptionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StoreProductQueryResult> GetStoreProductsAsync(IIterable<winrt::hstring> const& productKinds, IIterable<winrt::hstring> const& storeIds, StoreProductOptions const& storeProductOptions);
[Windows.Foundation.Metadata.Overload("GetStoreProductsWithOptionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StoreProductQueryResult> GetStoreProductsAsync(IEnumerable<string> productKinds, IEnumerable<string> storeIds, StoreProductOptions storeProductOptions);
function getStoreProductsAsync(productKinds, storeIds, storeProductOptions)
Public Function GetStoreProductsAsync (productKinds As IEnumerable(Of String), storeIds As IEnumerable(Of String), storeProductOptions As StoreProductOptions) As IAsyncOperation(Of StoreProductQueryResult)

パラメーター

productKinds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

リスト情報を取得する製品の種類を指定する文字列の配列。 サポートされている文字列値の一覧についてはProductKind プロパティをご覧ください。

storeIds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

リスト情報を取得する製品のストア ID 文字列の配列。

storeProductOptions
StoreProductOptions

クエリに使用されるフィルターを含む オブジェクト。

戻り値

正常に完了すると、指定された製品の一覧情報と関連するエラー情報を含む StoreProductQueryResult オブジェクトを返す非同期操作。

属性

Windows の要件

デバイス ファミリ
Windows 10, version 1803 (10.0.17134.0 で導入)
API contract
Windows.Services.Store.StoreContract (v3.0 で導入)

注釈

現在のアプリ内から購入できる製品についてのみ情報を返すには、storeProductOptions パラメーターに渡すオブジェクトの ActionFilters プロパティにフィルター文字列を追加Purchaseします。 現在のアプリに関連付けられているすべての指定された製品の情報を取得するには、現在購入可能かどうかに関係なく、代わりに GetStoreProductsAsync オーバーロードを使用します。

製品のストア ID はパートナー センターで使用でき、製品を表す StoreProduct の StoreId プロパティによっても返されます。 詳細については、「 ストア ID」を参照してください。

コード例など、このメソッドの使用方法の詳細については、「 アプリとアドオンの製品情報を取得する」を参照してください。

こちらもご覧ください

適用対象