> ## 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 使用以下项的缓存。

使用提供的搜索参数对公共目录执行搜索，并返回一组分页结果。SearchItems 使用目录的缓存，项目更新可能需要长达几分钟才能传播。当尝试立即获取近期项目更新时，应使用 GetItem API。有关搜索 API 的详细信息，请参阅此处：[/services/playfab/economy-monetization/economy-v2/catalog/search](/services/playfab/economy-monetization/economy-v2/catalog/search)

## 语法

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

### 参数

**`entityHandle`**   PFEntityHandle

用于身份验证的 PFEntityHandle。

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

已填充的请求对象。

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

用于异步操作的 XAsyncBlock。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 备注

此 API 可在所有平台上使用。异步任务完成后，调用 [PFCatalogSearchItemsGetResultSize](/services/playfab/api-references/c/pfcatalog/functions/pfcatalogsearchitemsgetresultsize) 和 [PFCatalogSearchItemsGetResult](/services/playfab/api-references/c/pfcatalog/functions/pfcatalogsearchitemsgetresult) 以获取结果。

## 要求

**头文件：** PFCatalog.h

## 另请参阅

[PFCatalog 成员](/services/playfab/api-references/c/pfcatalog/pfcatalog_members)


## Related topics

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