> ## 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.

# XStoreQueryAssociatedProductsResult

> XStoreQueryAssociatedProductsResult

# XStoreQueryAssociatedProductsResult

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

## 構文

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

### パラメーター

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

[XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync) に渡す `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。それ以外の場合はエラー コードが返されます。

## 解説

この結果関数は、[XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync) の実行結果を取得します。実行が成功した場合、関連製品のリストを返します。
この関数は [XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync) の後、通常はコールバック関数のコンテキストで呼び出します。

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

## 要件

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

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

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

## 関連概念ドキュメント

* [プレイヤーにアドオン コンテンツへのアクセス権を付与する](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-granting-access-to-content)
* [ストアの基本操作](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-basic-store-operations)

## 関連項目

[XStore](/reference/system/xstore/xstore_members)
[XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync)\
[XStoreQueryEntitledProductsAsync](/reference/system/xstore/functions/xstorequeryentitledproductsasync)\
[XStoreQueryProductsAsync](/reference/system/xstore/functions/xstorequeryproductsasync)\
[XStoreQueryProductForCurrentGameAsync](/reference/system/xstore/functions/xstorequeryproductforcurrentgameasync)\
[XStoreQueryProductForPackageAsync](/reference/system/xstore/functions/xstorequeryproductforpackageasync)\
[ストアの基本操作](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-basic-store-operations)\
[プレイヤーにアドオン コンテンツへのアクセス権を付与する](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-granting-access-to-content)


## Related topics

- [基本的な Store 操作](/ja-jp/publishing/xstore-commerce/xstore-basic-operations.md)
- [XStore](/ja-jp/reference/system/xstore/xstore_members.md)
- [GDK 向け Unity C# API ラッパー](/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreQueryAssociatedProductsForStoreIdResult](/ja-jp/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidresult.md)
- [XStoreQueryProductsResult](/ja-jp/reference/system/xstore/functions/xstorequeryproductsresult.md)
