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

# XStoreShowAssociatedProductsUIAsync

> XStoreShowAssociatedProductsUIAsync

# XStoreShowAssociatedProductsUIAsync

これにより Microsoft Store アプリが開き、ゲームに関連付けられた利用可能なアドオンのセットが表示されます。製品の種類によってさらにフィルタリングすることもできます。これはゲーム内で利用可能な製品を列挙して表示する代わりの手段です。

<Note>この API は Web ブラウザーでストアを開くため、ゲームがコンソール、PC 上の XBOX アプリ、またはゲーム ストリーミングのストアフロントに表示されている場合は、XStoreShowProductPageUI または XStoreShowPurchaseUI の使用をお勧めします。</Note>

<img src="https://mintcdn.com/microsoft-4404708b/-_0FrcE2bDxzGxv-/images/gdk/reference/addonsforthisgame-small.png?fit=max&auto=format&n=-_0FrcE2bDxzGxv-&q=85&s=2d03bf5581fce6d5486ef468e2821bf6" alt="このゲームのアドオン" width="600" height="332" data-path="images/gdk/reference/addonsforthisgame-small.png" />

## Syntax

```cpp theme={null}
HRESULT XStoreShowAssociatedProductsUIAsync(  
         const XStoreContextHandle storeContextHandle,  
         const char* storeId,  
         XStoreProductKind productKinds,  
         XAsyncBlock* async  
)  
```

### Parameters

*storeContextHandle*   \_In\_\
型: XStoreContextHandle

[XStoreCreateContext](/reference/system/xstore/functions/xstorecreatecontext) によって返されたユーザーのストア コンテキスト ハンドル。

*storeId*   \_In\_z\_\
型: char\*

製品の ID。

*productKinds*   \_In\_\
型: XStoreProductKind

表示する製品の種類を示す列挙値。

*async*   \_Inout\_\
型: XAsyncBlock\*

実行される非同期処理を定義する [XAsyncBlock](/reference/system/xasync/structs/xasyncblock)。[XAsyncBlock](/reference/system/xasync/structs/xasyncblock) を使用して呼び出しの状態をポーリングしたり、呼び出し結果を取得したりできます。詳細については、[XAsyncBlock](/reference/system/xasync/structs/xasyncblock) を参照してください。

### Return value

型: HRESULT

HRESULT の成功またはエラー コード。

## Requirements

**ヘッダー:** XStore.h

**ライブラリ:** \*\*\*\*.lib
**サポートされているプラットフォーム**: Windows、XBOX One ファミリー本体および XBOX Series 本体

## Conceptual documentation

* [ゲームでゲーム内購入を実装する](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/pc-dev/tutorials/pc-e2e-guide/e2e-services/e2e-in-game-purchases)
* [基本的なストア操作](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-basic-store-operations)

## See also

[XStore](/reference/system/xstore/xstore_members)


## Related topics

- [XStoreShowAssociatedProductsUIResult](/ja-jp/reference/system/xstore/functions/xstoreshowassociatedproductsuiresult.md)
- [基本的な 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)
- [XStoreShowProductPageUIAsync](/ja-jp/reference/system/xstore/functions/xstoreshowproductpageuiasync.md)
