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

# PFEntityGetSecretKeySize

> Obtém o tamanho do buffer necessário para armazenar a secretKey do PlayFab. Falhará com E_PF_NOSECRETKEY se não houver uma chave secreta associada à entidade fornecida.

Obtém o tamanho do buffer necessário para armazenar a secretKey do PlayFab. Falhará com E\_PF\_NOSECRETKEY se não houver uma chave secreta associada à entidade fornecida.

## Sintaxe

```cpp theme={null}
HRESULT PFEntityGetSecretKeySize(  
    PFEntityHandle handle,  
    size_t* secretKeySize  
)  
```

### Parâmetros

**`handle`**   PFEntityHandle

Identificador de entidade.

**`secretKeySize`**   size\_t\*<br />*output*

Tamanho do buffer necessário para a secretKey (incluindo o terminador nulo).

### Valor de retorno

Tipo: HRESULT

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

## Requisitos

**Cabeçalho:** PFEntity.h

## Confira também

[Membros de PFEntity](/pt-BR/services/playfab/api-references/c/pfentity/pfentity_members)


## Related topics

- [PFEntityGetSecretKey](/pt-BR/services/playfab/api-references/c/pfentity/functions/pfentitygetsecretkey.md)
- [Visão geral da API C de serviços - PFEntity.h](/pt-BR/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [Identificadores de entidade](/pt-BR/services/playfab/sdks/c/entity-handles.md)
- [PFAuthenticationGetEntityWithSecretKeyGetResult](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationgetentitywithsecretkeygetresult.md)
- [PFAuthenticationGetEntityWithSecretKeyAsync](/pt-BR/services/playfab/api-references/c/pfauthentication/functions/pfauthenticationgetentitywithsecretkeyasync.md)
