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

# PFEvent

> Evento a ser carregado no PlayFab.

Evento a ser carregado no PlayFab.

## Sintaxe

```cpp theme={null}
struct PFEvent {  
    PFEntityKey const* entity;  
    const char* eventNamespace;  
    const char* name;  
    const char* clientId;  
    const char* payloadJson;  
}  
```

### Membros

**`entity`**   PFEntityKey const\*<br />*may be nullptr*

Entidade associada ao evento. Se for nulo, o evento será aplicado à entidade que fez a chamada.

**`eventNamespace`**   const char\*<br />*is null-terminated*

O namespace no qual o evento é definido.

**`name`**   const char\*<br />*is null-terminated*

O nome do evento.

**`clientId`**   const char\*<br />*is null-terminated*

Identificador atribuído pelo cliente associado ao evento. Não é obrigatório, mas pode ser útil para acompanhamento ou rastreamento. Se um clientId não for fornecido, o SDK atribuirá um automaticamente.

**`payloadJson`**   const char\*<br />*is null-terminated*

Dados JSON arbitrários associados ao evento.

## Requisitos

**Cabeçalho:** PFEventPipeline.h

## Confira também

[Membros de PFEventPipeline](/pt-BR/services/playfab/api-references/c/pfeventpipeline/pfeventpipeline_members)


## Related topics

- [PFEventPipelineEmitEvent](/pt-BR/services/playfab/api-references/c/pfeventpipeline/functions/pfeventpipelineemitevent.md)
- [PFEventsWriteEventsAsync](/pt-BR/services/playfab/api-references/c/pfevents/functions/pfeventswriteeventsasync.md)
- [Visão geral da API C de serviços - PFEvents.h](/pt-BR/services/playfab/api-references/c/pfevents/pfevents_members.md)
- [PFEventsWriteEventsGetResult](/pt-BR/services/playfab/api-references/c/pfevents/functions/pfeventswriteeventsgetresult.md)
- [PFEventsWriteTelemetryEventsAsync](/pt-BR/services/playfab/api-references/c/pfevents/functions/pfeventswritetelemetryeventsasync.md)
