StoreContext.GetAssociatedStoreProductsWithPagingAsync メソッド

定義

現在のアプリ内から購入できる製品の Microsoft Store 登録情報を取得します。 このメソッドは、結果を返すページングをサポートしています。

public:
 virtual IAsyncOperation<StoreProductPagedQueryResult ^> ^ GetAssociatedStoreProductsWithPagingAsync(IIterable<Platform::String ^> ^ productKinds, unsigned int maxItemsToRetrievePerPage) = GetAssociatedStoreProductsWithPagingAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StoreProductPagedQueryResult> GetAssociatedStoreProductsWithPagingAsync(IIterable<winrt::hstring> const& productKinds, uint32_t const& maxItemsToRetrievePerPage);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StoreProductPagedQueryResult> GetAssociatedStoreProductsWithPagingAsync(IEnumerable<string> productKinds, uint maxItemsToRetrievePerPage);
function getAssociatedStoreProductsWithPagingAsync(productKinds, maxItemsToRetrievePerPage)
Public Function GetAssociatedStoreProductsWithPagingAsync (productKinds As IEnumerable(Of String), maxItemsToRetrievePerPage As UInteger) As IAsyncOperation(Of StoreProductPagedQueryResult)

パラメーター

productKinds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

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

maxItemsToRetrievePerPage
UInt32

unsigned int

uint32_t

結果の各ページで返される製品の最大数。

戻り値

正常に完了すると、関連付けられている製品、関連するエラー情報、および結果の次のページへのアクセスを提供する StoreProductPagedQueryResult を返す非同期操作。

属性

注釈

このメソッドは GetAssociatedStoreProductsAsync に似ていますが、ページングを使用して製品を取得できる点が異なっています。 コード例を含む GetAssociatedStoreProductsAsync の使用方法の詳細については、「 アプリとアドオンの製品情報を取得する」を参照してください。

StoreProductPagedQueryResult 戻り値の HasMoreResults を使用して、結果のページが追加されているかどうかを確認し、GetNextAsync メソッドを使用して結果の次のページを取得します。

Note

データの現在のページに含まれる項目が maxItemsToRetrievePerPage よりも少ない場合でも、使用可能なページ数が多いかどうかを判断するには、常に HasMoreResults を使用します。 より高速な結果を得るために、使用可能なデータページが多い場合でも、サービスは maxItemsToRetrievePerPage よりもページ内のアイテムを少なく返すことができます。

適用対象

こちらもご覧ください