> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFPlayerDataManagementServerGetPlayerCustomPropertyAsync

> 使用游戏实体句柄和服务器请求对象检索玩家的单个自定义属性值的服务器 API。仅可在 Windows 上使用。

检索玩家的游戏特定自定义属性值。

## 语法

```cpp theme={null}
HRESULT PFPlayerDataManagementServerGetPlayerCustomPropertyAsync(  
    PFEntityHandle titleEntityHandle,  
    const PFPlayerDataManagementServerGetPlayerCustomPropertyRequest* request,  
    XAsyncBlock* async  
)  
```

### 参数

**`titleEntityHandle`**   PFEntityHandle

使用 PFAuthenticationGetEntityWithSecretKeyAsync 获取的游戏实体的 PFEntityHandle。

**`request`**   [PFPlayerDataManagementServerGetPlayerCustomPropertyRequest\*](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfplayerdatamanagementtypes/structs/pfplayerdatamanagementservergetplayercustompropertyrequest.md)

已填充的请求对象。

**`async`**   XAsyncBlock\*\
*Inout*

用于异步操作的 XAsyncBlock。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 备注

此 API 可在 Windows 上使用。另请参阅 ServerDeletePlayerCustomPropertiesAsync、ServerListPlayerCustomPropertiesAsync、ServerUpdatePlayerCustomPropertiesAsync。异步任务完成后，调用 [PFPlayerDataManagementServerGetPlayerCustomPropertyGetResultSize](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfplayerdatamanagement/functions/pfplayerdatamanagementservergetplayercustompropertygetresultsize.md) 和 [PFPlayerDataManagementServerGetPlayerCustomPropertyGetResult](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfplayerdatamanagement/functions/pfplayerdatamanagementservergetplayercustompropertygetresult.md) 获取结果。

## 要求

**头文件：** PFPlayerDataManagement.h

## 另请参阅

[PFPlayerDataManagement 成员](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfplayerdatamanagement/pfplayerdatamanagement_members.md)


## Related topics

- [PFPlayerDataManagementServerGetPlayerCustomPropertyGetResult](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfplayerdatamanagement/functions/pfplayerdatamanagementservergetplayercustompropertygetresult.md)
- [PFPlayerDataManagementServerListPlayerCustomPropertiesAsync](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfplayerdatamanagement/functions/pfplayerdatamanagementserverlistplayercustompropertiesasync.md)
- [PFPlayerDataManagementServerDeletePlayerCustomPropertiesAsync](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfplayerdatamanagement/functions/pfplayerdatamanagementserverdeleteplayercustompropertiesasync.md)
- [PFPlayerDataManagementServerUpdatePlayerCustomPropertiesAsync](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfplayerdatamanagement/functions/pfplayerdatamanagementserverupdateplayercustompropertiesasync.md)
- [PFPlayerDataManagementServerListPlayerCustomPropertiesGetResult](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfplayerdatamanagement/functions/pfplayerdatamanagementserverlistplayercustompropertiesgetresult.md)
