StoreContext.GetAssociatedStoreProductsWithPagingAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
現在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)
パラメーター
取得する製品の種類を指定する文字列の配列。 サポートされている文字列値の一覧については、 ProductKind プロパティを参照してください。
- maxItemsToRetrievePerPage
-
UInt32
unsigned int
uint32_t
結果の各ページで返される製品の最大数。
返品
正常に完了すると、関連付けられている製品、関連するエラー情報、および結果の次のページへのアクセスを提供する StoreProductPagedQueryResult を返す非同期操作。
- 属性
注釈
このメソッドは GetAssociatedStoreProductsAsync に似ていますが、ページングを使用して製品を取得できる点が異なっています。 コード例を含む GetAssociatedStoreProductsAsync の使用の詳細については、「 アプリとアドオンの製品情報を取得する」を参照してください。
StoreProductPagedQueryResult 戻り値の HasMoreResults を使用して、結果のページが追加されているかどうかを判断し、GetNextAsync メソッドを使用して結果の次のページを取得します。
Note
データの現在のページに含まれる項目数が maxItemsToRetrievePerPage よりも少ない場合でも、HasMoreResults を使用して使用可能なページが増えるかどうかを判断します。 より高速な結果を得るために、使用可能なデータのページが多い場合でも、サービスは maxItemsToRetrievePerPage よりも少ないアイテムをページに返すことができます。