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

# PFLeaderboardsUpdateLeaderboardDefinitionAsync

> 更新排行榜定义。

更新排行榜定义。

## 语法

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

### 参数

**`entityHandle`**   PFEntityHandle

用于身份验证的 PFEntityHandle。

**`request`**   [PFLeaderboardsUpdateLeaderboardDefinitionRequest\*](/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsupdateleaderboarddefinitionrequest)

已填充的请求对象。

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

用于异步操作的 XAsyncBlock。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 备注

此 API 可在 Windows 上使用。另请参阅 LeaderboardDeleteLeaderboardDefinitionAsync。调用 XAsyncGetStatus 以获取操作状态。如果服务调用不成功，异步结果将为 E\_PF\_LEADERBOARD\_SIZE\_LIMIT\_EXCEEDED、E\_PF\_MAX\_QUERYABLE\_VERSIONS\_EXCEEDED、E\_PF\_MAX\_QUERYABLE\_VERSIONS\_VALUE\_NOT\_ALLOWED\_FOR\_TIER、E\_PF\_PLAY\_FAB\_ERROR\_EVENT\_NOT\_SUPPORTED\_FOR\_ENTITY\_TYPE、E\_PF\_RESET\_INTERVAL\_CANNOT\_BE\_MODIFIED 或任何全局 PlayFab 服务错误。有关错误处理的更多详细信息，请参阅文档页“Handling PlayFab Errors”。

## 要求

**头文件：** PFLeaderboards.h

## 另请参阅

[PFLeaderboards 成员](/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members)
