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

# PFInventoryGetInventoryCollectionIdsAsync

> 取得庫存集合 Id。一次最多可傳回 50 個 Id (啟用回應壓縮時為 250 個)。您可以使用接續權杖進行分頁。

取得庫存集合 Id。一次最多可傳回 50 個 Id (啟用回應壓縮時為 250 個)。對於傳回數量超過限制的結果，您可以使用接續權杖進行分頁。新的集合 Id 可能需要幾秒鐘才會出現。

## 語法

```cpp theme={null}
HRESULT PFInventoryGetInventoryCollectionIdsAsync(  
    PFEntityHandle entityHandle,  
    const PFInventoryGetInventoryCollectionIdsRequest* request,  
    XAsyncBlock* async  
)  
```

### 參數

**`entityHandle`**   PFEntityHandle

用於驗證的 PFEntityHandle。

**`request`**   [PFInventoryGetInventoryCollectionIdsRequest\*](/zh-TW/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorygetinventorycollectionidsrequest)

已填入的要求物件。

**`async`**   XAsyncBlock\*<br />*Inout*

用於非同步作業的 XAsyncBlock。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。

## 備註

此 API 適用於所有平台。取得指定實體的庫存集合 Id 清單。當非同步工作完成時，請呼叫 [PFInventoryGetInventoryCollectionIdsGetResultSize](/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventorycollectionidsgetresultsize) 和 [PFInventoryGetInventoryCollectionIdsGetResult](/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventorycollectionidsgetresult) 以取得結果。

## 需求

**標頭：** PFInventory.h

## 另請參閱

[PFInventory 成員](/zh-TW/services/playfab/api-references/c/pfinventory/pfinventory_members)


## Related topics

- [PFInventoryGetInventoryCollectionIdsGetResult](/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventorycollectionidsgetresult.md)
- [服務 C API 概觀 - PFInventory.h](/zh-TW/services/playfab/api-references/c/pfinventory/pfinventory_members.md)
- [Get Inventory Collection Ids](/api-reference/inventory/get-inventory-collection-ids.md)
- [PFInventoryGetInventoryCollectionIdsGetResultSize](/zh-TW/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventorycollectionidsgetresultsize.md)
- [PFInventoryGetInventoryCollectionIdsResponse](/zh-TW/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorygetinventorycollectionidsresponse.md)
