> ## 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](/zh-TW/reference/system/xstore/functions/xstoregetusercollectionsidasync) 呼叫的結果。

## 語法

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

### 參數

*async*   \_Inout\_\
類型：[XAsyncBlock\*](/zh-TW/reference/system/xasync/structs/xasyncblock)

傳遞給 [XStoreGetUserCollectionsIdAsync](/zh-TW/reference/system/xstore/functions/xstoregetusercollectionsidasync) 的 XAsyncBlock。[XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock) 可用來輪詢呼叫的狀態並擷取呼叫結果。如需詳細資訊，請參閱 [XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock)。

*size*   \_In\_\
類型：size\_t

傳入 **result** 之陣列的大小。

*result*   \_Out\_writes\_z\_(size)\
類型：char\*

成功時，包含集合識別碼。

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

## 備註

此結果函式可讓您擷取 [XStoreGetUserCollectionsIdAsync](/zh-TW/reference/system/xstore/functions/xstoregetusercollectionsidasync) 的執行結果，以及在執行成功時所要求的集合識別碼。因此，應在呼叫 [XStoreGetUserCollectionsIdAsync](/zh-TW/reference/system/xstore/functions/xstoregetusercollectionsidasync) 之後呼叫此函式，通常是在回呼函式的內容中。如需使用範例，請參閱 [XStoreGetUserCollectionsIdAsync](/zh-TW/reference/system/xstore/functions/xstoregetusercollectionsidasync)。

## 需求

**標頭：** XStore.h (包含在 XGameRuntime.h 中)

**程式庫：** xgameruntime.lib

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

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


## Related topics

- [XStoreGetUserCollectionsIdResult](/es/reference/system/xstore/functions/xstoregetusercollectionsidresult.md)
- [XStoreGetUserCollectionsIdResultSize](/reference/system/xstore/functions/xstoregetusercollectionsidresultsize.md)
