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

# PFStatisticsUpdateStatisticDefinitionAsync

> Met à jour une définition de statistique d'entité existante.

Met à jour une définition de statistique d'entité existante.

## Syntaxe

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

### Paramètres

**`entityHandle`**   PFEntityHandle

PFEntityHandle à utiliser pour l'authentification.

**`request`**   [PFStatisticsUpdateStatisticDefinitionRequest\*](/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsupdatestatisticdefinitionrequest)

Objet de requête renseigné.

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

XAsyncBlock pour l'opération asynchrone.

### Valeur de retour

Type : HRESULT

Code de résultat de cette opération d'API.

## Notes

Cette API est disponible sur Windows. Voir aussi StatisticCreateStatisticDefinitionAsync. Appelez XAsyncGetStatus pour obtenir l'état de l'opération. Si l'appel au service échoue, le résultat asynchrone sera E\_PF\_API\_NOT\_ENABLED\_FOR\_TITLE, E\_PF\_INVALID\_BASE\_TIME\_FOR\_INTERVAL, E\_PF\_MAX\_QUERYABLE\_VERSIONS\_EXCEEDED, E\_PF\_MAX\_QUERYABLE\_VERSIONS\_VALUE\_NOT\_ALLOWED\_FOR\_TIER, E\_PF\_RESET\_INTERVAL\_CANNOT\_BE\_MODIFIED, E\_PF\_STATISTIC\_NOT\_FOUND ou l'une des erreurs globales du service PlayFab. Consultez la page de documentation "Handling PlayFab Errors" pour plus de détails sur la gestion des erreurs.

## Configuration requise

**En-tête :** PFStatistics.h

## Voir aussi

[Membres de PFStatistics](/services/playfab/api-references/c/pfstatistics/pfstatistics_members)
