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

# XblUserStatisticsGetMultipleUserStatisticsAsync

> XblUserStatisticsGetMultipleUserStatisticsAsync

# XblUserStatisticsGetMultipleUserStatisticsAsync

Obtém estatísticas de vários usuários.

## Sintaxe

```cpp theme={null}
HRESULT XblUserStatisticsGetMultipleUserStatisticsAsync(  
         XblContextHandle xblContextHandle,  
         uint64_t* xboxUserIds,  
         size_t xboxUserIdsCount,  
         const char* serviceConfigurationId,  
         const char** statisticNames,  
         size_t statisticNamesCount,  
         XAsyncBlock* async  
)  
```

### Parâmetros

*xblContextHandle*   \_In\_\
Tipo: [XblContextHandle](/pt-BR/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

Contexto do XBOX live para o usuário local.

*xboxUserIds*   \_In\_\
Tipo: uint64\_t\*

Uma lista das IDs de usuário do XBOX dos usuários dos quais obter estatísticas.

*xboxUserIdsCount*   \_In\_\
Tipo: size\_t

O número de IDs de usuário do XBOX.

*serviceConfigurationId*   \_In\_z\_\
Tipo: char\*

A ID de configuração de serviço (SCID) do título. A SCID diferencia maiúsculas de minúsculas, portanto, cole-a diretamente do Partner Center.

*statisticNames*   \_In\_\
Tipo: char\*\*

Uma coleção de nomes de estatísticas a serem pesquisados.

*statisticNamesCount*   \_In\_\
Tipo: size\_t

O número de nomes de estatísticas.

*async*   \_In\_\
Tipo: XAsyncBlock\*

O AsyncBlock desta operação.

### Valor retornado

Tipo: HRESULT

Código de retorno HRESULT desta operação de API.

## Comentários

Chame [XblUserStatisticsGetMultipleUserStatisticsResultSize](/pt-BR/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsresultsize) e [XblUserStatisticsGetMultipleUserStatisticsResult](/pt-BR/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsresult) após a conclusão para obter o resultado. Somente estatísticas com valores são retornadas. Por exemplo, se você solicitar 3 nomes de estatísticas e apenas 2 tiverem valores, somente 2 estatísticas serão retornadas pelo serviço.

Se estiver usando [estatísticas baseadas em eventos](/pt-BR/services/xbox-services/player-data/stats-leaderboards/event-based/live-stats-eb-overview), os nomes das estatísticas coincidirão com a [instância de estatística](/pt-BR/services/xbox-services/player-data/stats-leaderboards/event-based/live-stats-eb-overview#defining-stat-instances) de cada estatística. Se estiver usando [estatísticas gerenciadas pelo título](/pt-BR/services/xbox-services/player-data/stats-leaderboards/title-managed/live-stats-tm-overview), os nomes das estatísticas coincidirão com a ID de cada estatística.

## Chamada REST

V1 POST /batch

## Requisitos

**Cabeçalho:** user\_statistics\_c.h

**Biblioteca:** Microsoft.Xbox.Services.14x.GDK.C.lib

## Confira também

[user\_statistics\_c](/pt-BR/reference/live/xsapi-c/user_statistics_c/user_statistics_c_members)


## Related topics

- [XblUserStatisticsGetMultipleUserStatisticsResult](/pt-BR/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsresult.md)
- [XblUserStatisticsGetMultipleUserStatisticsResultSize](/pt-BR/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsresultsize.md)
- [Obter estatísticas baseadas em eventos](/pt-BR/services/xbox-services/player-data/stats-leaderboards/event-based/how-to/live-getting-eb-stat.md)
- [XblUserStatisticsGetMultipleUserStatisticsForMultipleServiceConfigurationsAsync](/pt-BR/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsformultipleserviceconfigurationsasync.md)
- [XblUserStatisticsGetMultipleUserStatisticsForMultipleServiceConfigurationsResult](/pt-BR/reference/live/xsapi-c/user_statistics_c/functions/xbluserstatisticsgetmultipleuserstatisticsformultipleserviceconfigurationsresult.md)
