> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XStoreQueryAssociatedProductsForStoreIdResult

> XStoreQueryAssociatedProductsForStoreIdResult

# XStoreQueryAssociatedProductsForStoreIdResult

[XStoreQueryAssociatedProductsForStoreIdAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync) の呼び出し結果を取得します。

## 構文

```cpp theme={null}
HRESULT XStoreQueryAssociatedProductsForStoreIdResult(  
         XAsyncBlock* async,  
         XStoreProductQueryHandle* productQueryHandle  
)  
```

### パラメーター

*async*   \_Inout\_\
Type: [XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

[XStoreQueryAssociatedProductsForStoreIdAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync) に渡す `XAsyncBlock`。[XAsyncBlock](/reference/system/xasync/structs/xasyncblock) を使用して、呼び出しの状態を確認し、結果を取得します。
詳細については、[XAsyncBlock](/reference/system/xasync/structs/xasyncblock) を参照してください。

*productQueryHandle*   \_Out\_\
Type: XStoreProductQueryHandle\*

戻り時に、クエリを表す `XStoreProductQueryHandle` が格納されます。クエリが返した製品を一覧表示するには、返された `XStoreProductQueryHandle` を [XStoreEnumerateProductsQuery](/reference/system/xstore/functions/xstoreenumerateproductsquery) に渡します。

### 戻り値

Type: HRESULT

成功した場合は S\_OK。それ以外の場合はエラー コードが返されます。

## 解説

この結果関数は、[XStoreQueryAssociatedProductsForStoreIdAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync) の実行結果を取得します。結果が成功の場合、[XStoreEnumerateProductsQuery](/reference/system/xstore/functions/xstoreenumerateproductsquery) で列挙できる関連製品のリストが含まれます。この関数は [XStoreQueryAssociatedProductsForStoreIdAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync) の後、通常はコールバック関数のコンテキストで呼び出します。

使用例については、[XStoreQueryAssociatedProductsForStoreIdAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync) を参照してください。

## 要件

**ヘッダー:** XStore.h (XGameRuntime.h に含まれる)

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、XBOX One 本体、および XBOX Series 本体

## 関連項目

[XStore](/reference/system/xstore/xstore_members)
[XStoreQueryAssociatedProductsForStoreIdAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync)\
[XStoreQueryEntitledProductsAsync](/reference/system/xstore/functions/xstorequeryentitledproductsasync)\
[XStoreQueryProductsAsync](/reference/system/xstore/functions/xstorequeryproductsasync)\
[XStoreQueryProductForCurrentGameAsync](/reference/system/xstore/functions/xstorequeryproductforcurrentgameasync)\
[XStoreQueryProductForPackageAsync](/reference/system/xstore/functions/xstorequeryproductforpackageasync)


## Related topics

- [XStore](/ja-jp/reference/system/xstore/xstore_members.md)
- [XStoreQueryAssociatedProductsResult](/ja-jp/reference/system/xstore/functions/xstorequeryassociatedproductsresult.md)
- [XStoreQueryProductsResult](/ja-jp/reference/system/xstore/functions/xstorequeryproductsresult.md)
- [XStoreQueryProductForPackageResult](/ja-jp/reference/system/xstore/functions/xstorequeryproductforpackageresult.md)
- [XStoreQueryProductForCurrentGameResult](/ja-jp/reference/system/xstore/functions/xstorequeryproductforcurrentgameresult.md)
