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

# PFCatalogSearchItemsAsync

> 使用提供的搜尋參數對公用目錄執行搜尋，並傳回一組分頁結果。SearchItems 使用目錄的快取，項目更新最多可能需要幾分鐘才會傳播。若要立即取得最新的項目更新，應使用 GetItem API。如需 Search API 的詳細資訊，請參閱：https://learn.microsoft.com/gaming/playfab/features/economy-v2/catalog/search

使用提供的搜尋參數對公用目錄執行搜尋，並傳回一組分頁結果。SearchItems 使用目錄的快取，項目更新最多可能需要幾分鐘才會傳播。若要立即取得最新的項目更新，應使用 GetItem API。如需 Search API 的詳細資訊，請參閱：[https://learn.microsoft.com/gaming/playfab/features/economy-v2/catalog/search](https://learn.microsoft.com/gaming/playfab/features/economy-v2/catalog/search)

## 語法

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

### 參數

**`entityHandle`**   PFEntityHandle

用於驗證的 PFEntityHandle。

**`request`**   [PFCatalogSearchItemsRequest\*](/zh-TW/services/playfab/api-references/c/pfcatalogtypes/structs/pfcatalogsearchitemsrequest)

已填入的要求物件。

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

用於非同步作業的 XAsyncBlock。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。

## 備註

此 API 適用於所有平台。非同步工作完成時，請呼叫 [PFCatalogSearchItemsGetResultSize](/zh-TW/services/playfab/api-references/c/pfcatalog/functions/pfcatalogsearchitemsgetresultsize) 和 [PFCatalogSearchItemsGetResult](/zh-TW/services/playfab/api-references/c/pfcatalog/functions/pfcatalogsearchitemsgetresult) 以取得結果。

## 需求

**標頭：** PFCatalog.h

## 另請參閱

[PFCatalog 成員](/zh-TW/services/playfab/api-references/c/pfcatalog/pfcatalog_members)


## Related topics

- [PFCatalogSearchItemsGetResult](/zh-TW/services/playfab/api-references/c/pfcatalog/functions/pfcatalogsearchitemsgetresult.md)
- [服務 C API 概觀 - PFCatalog.h](/zh-TW/services/playfab/api-references/c/pfcatalog/pfcatalog_members.md)
- [PFCatalogSearchItemsGetResultSize](/zh-TW/services/playfab/api-references/c/pfcatalog/functions/pfcatalogsearchitemsgetresultsize.md)
- [PFCatalogSearchItemsRequest](/zh-TW/services/playfab/api-references/c/pfcatalogtypes/structs/pfcatalogsearchitemsrequest.md)
- [PFCatalogSearchItemsResponse](/zh-TW/services/playfab/api-references/c/pfcatalogtypes/structs/pfcatalogsearchitemsresponse.md)
