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

# XStoreGetUserCollectionsIdResult

> XStoreGetUserCollectionsIdResult

# XStoreGetUserCollectionsIdResult

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

## 構文

```cpp theme={null}
HRESULT XStoreGetUserCollectionsIdResult(  
         XAsyncBlock* async,  
         size_t size,  
         char* result  
)  
```

### パラメーター

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

[XStoreGetUserCollectionsIdAsync](/reference/system/xstore/functions/xstoregetusercollectionsidasync) に渡された XAsyncBlock。[XAsyncBlock](/reference/system/xasync/structs/xasyncblock) は、呼び出しの状態のポーリングと呼び出し結果の取得に使用できます。詳細については、[XAsyncBlock](/reference/system/xasync/structs/xasyncblock) を参照してください。

*size*   \_In\_\
Type: size\_t

**result** に渡される配列のサイズ。

*result*   \_Out\_writes\_z\_(size)\
Type: char\*

成功時に、コレクション ID が格納されます。

### 戻り値

Type: HRESULT

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

## 解説

この結果関数を使用すると、[XStoreGetUserCollectionsIdAsync](/reference/system/xstore/functions/xstoregetusercollectionsidasync) の実行結果と、実行が成功した場合に呼び出されたコレクション ID を取得できます。したがって、この関数は [XStoreGetUserCollectionsIdAsync](/reference/system/xstore/functions/xstoregetusercollectionsidasync) の呼び出し後、通常はコールバック関数のコンテキストで呼び出す必要があります。使用例については、[XStoreGetUserCollectionsIdAsync](/reference/system/xstore/functions/xstoregetusercollectionsidasync) を参照してください。

## 要件

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

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

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

## 関連項目

[XStore](/reference/system/xstore/xstore_members)\
[XStoreGetUserCollectionsIdAsync](/reference/system/xstore/functions/xstoregetusercollectionsidasync)\
[XStoreGetUserCollectionsIdResultSize](/reference/system/xstore/functions/xstoregetusercollectionsidresultsize)


## Related topics

- [XStoreGetUserCollectionsIdResultSize](/ja-jp/reference/system/xstore/functions/xstoregetusercollectionsidresultsize.md)
- [XStoreGetUserCollectionsIdAsync](/ja-jp/reference/system/xstore/functions/xstoregetusercollectionsidasync.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)
- [サービス間認証用のユーザー Store ID を要求する](/ja-jp/publishing/xstore-commerce/xstore-requesting-userstoreid.md)
