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

# XStoreGetUserCollectionsIdResultSize

> XStoreGetUserCollectionsIdResultSize

# XStoreGetUserCollectionsIdResultSize

[XStoreGetUserCollectionsIdResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoregetusercollectionsidresult.md) から返される ID のサイズを取得します。

## 構文

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

### パラメーター

*async*   \_In\_\
Type: [XAsyncBlock\*](https://docs.xbox.com/ja-jp/reference/system/xasync/structs/xasyncblock.md)

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

*size*   \_Out\_\
Type: size\_t\*

成功時に、[XStoreGetUserCollectionsIdResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoregetusercollectionsidresult.md) から返される ID のサイズが格納されます。

### 戻り値

Type: HRESULT

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

## 解説

この結果関数を使用すると、[XStoreGetUserCollectionsIdResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoregetusercollectionsidresult.md) が呼び出されたときのコレクション ID のサイズを取得できます。したがって、この関数は [XStoreGetUserCollectionsIdResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoregetusercollectionsidresult.md) の呼び出し後、通常はコールバック関数のコンテキストで呼び出す必要があります。使用例については、[XStoreGetUserCollectionsIdAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoregetusercollectionsidasync.md) を参照してください。

## 要件

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

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

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

## 関連項目

[XStore](https://docs.xbox.com/ja-jp/reference/system/xstore/xstore_members.md)\
[XStoreGetUserCollectionsIdAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoregetusercollectionsidasync.md)\
[XStoreGetUserCollectionsIdResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoregetusercollectionsidresult.md)


## Related topics

- [XStoreGetUserCollectionsIdResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoregetusercollectionsidresult.md)
- [XStoreGetUserCollectionsIdAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoregetusercollectionsidasync.md)
- [Unity プロジェクトでの GDK API 用 C# ラッパーの使用](https://docs.xbox.com/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStore (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xstore/xstore_members.md)
- [XStoreGetUserPurchaseIdResultSize](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoregetuserpurchaseidresultsize.md)
