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

# PFCatalogGetItemsAsync

> 从公共目录中检索项目。一次最多可返回 50 个项目。GetItems 不基于目录的缓存工作，应在下列情况下使用。

从公共目录中检索项目。一次最多可返回 50 个项目。GetItems 不基于目录的缓存工作，应在尝试获取近期项目更新时使用。但请注意，项目引用数据会被缓存，更改可能需要一些时间才能传播。

## 语法

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

### 参数

**`entityHandle`**   PFEntityHandle

用于身份验证的 PFEntityHandle。

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

已填充的请求对象。

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

用于异步操作的 XAsyncBlock。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 备注

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

## 要求

**头文件：** PFCatalog.h

## 另请参阅

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