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

# PFLeaderboardsCreateLeaderboardDefinitionAsync

> Cria uma nova definição de tabela de classificação.

Cria uma nova definição de tabela de classificação.

## Sintaxe

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

### Parâmetros

**`entityHandle`**   PFEntityHandle

PFEntityHandle a ser usado para autenticação.

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

Objeto de solicitação preenchido.

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

XAsyncBlock para a operação assíncrona.

### Valor de retorno

Tipo: HRESULT

Código de resultado desta operação de API.

## Comentários

Esta API está disponível no Windows, Linux e macOS. Consulte também LeaderboardDeleteLeaderboardDefinitionAsync. Chame XAsyncGetStatus para obter o status da operação. Se a chamada de serviço não for bem-sucedida, o resultado assíncrono será E\_PF\_API\_NOT\_ENABLED\_FOR\_TITLE, E\_PF\_DUPLICATE\_COLUMN\_NAME\_FOUND, E\_PF\_DUPLICATE\_LINKED\_STATISTIC\_COLUMN\_NAME\_FOUND, E\_PF\_ENTITY\_TYPE\_MISMATCH\_WITH\_STAT\_DEFINITION, E\_PF\_EXTERNAL\_ENTITY\_NOT\_ALLOWED\_FOR\_TIER, E\_PF\_INVALID\_BASE\_TIME\_FOR\_INTERVAL, E\_PF\_LEADERBOARD\_COUNT\_LIMIT\_EXCEEDED, E\_PF\_LEADERBOARD\_NAME\_CONFLICT, E\_PF\_LEADERBOARD\_SIZE\_LIMIT\_EXCEEDED, E\_PF\_LINKED\_STATISTIC\_COLUMN\_MISMATCH, E\_PF\_LINKED\_STATISTIC\_COLUMN\_NOT\_FOUND, E\_PF\_LINKED\_STATISTIC\_COLUMN\_REQUIRED, E\_PF\_LINKING\_STATS\_NOT\_ALLOWED\_FOR\_ENTITY\_TYPE, E\_PF\_MAX\_QUERYABLE\_VERSIONS\_EXCEEDED, E\_PF\_MAX\_QUERYABLE\_VERSIONS\_VALUE\_NOT\_ALLOWED\_FOR\_TIER, E\_PF\_MULTIPLE\_LINKED\_STATISTICS\_NOT\_ALLOWED, E\_PF\_PLAY\_FAB\_ERROR\_EVENT\_NOT\_SUPPORTED\_FOR\_ENTITY\_TYPE, E\_PF\_STAT\_DEFINITION\_ALREADY\_LINKED\_TO\_LEADERBOARD, E\_PF\_STATISTIC\_NOT\_FOUND, E\_PF\_VERSION\_CONFIGURATION\_IS\_REQUIRED ou qualquer um dos erros globais do Serviço PlayFab. Consulte a página de documentação "Handling PlayFab Errors" para obter mais detalhes sobre o tratamento de erros.

## Requisitos

**Cabeçalho:** PFLeaderboards.h

## Confira também

[Membros de PFLeaderboards](/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members)


## Related topics

- [Visão geral da API C do Services - PFLeaderboards.h](/pt-BR/services/playfab/api-references/c/pfleaderboards/pfleaderboards_members.md)
- [PFLeaderboardsDeleteLeaderboardDefinitionAsync](/pt-BR/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsdeleteleaderboarddefinitionasync.md)
- [PFLeaderboardsCreateLeaderboardDefinitionRequest](/pt-BR/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardscreateleaderboarddefinitionrequest.md)
- [PFLeaderboardsGetLeaderboardDefinitionAsync](/pt-BR/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsgetleaderboarddefinitionasync.md)
- [PFLeaderboardsListLeaderboardDefinitionsAsync](/pt-BR/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardslistleaderboarddefinitionsasync.md)
