> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Real-time messages for Lobby and Matchmaking APIs

> PFEntityKey members

PFEntityKey data model. Combined entity type and ID structure which uniquely identifies a single entity.

```csharp theme={null}
public class PFEntityKey
```

## Public Members

| name | description |
| - | - |
| [PFEntityKey](https://docs.xbox.com/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PFEntityKey/PFEntityKey.md)(…) | Initializes a new instance of the [`PFEntityKey`](https://docs.xbox.com/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PFEntityKey/overview) class. Pass in a PlayFabAuthenticationContext *authContext* returned by a PlayFab login method. (2 constructors) |
| [Id](https://docs.xbox.com/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PFEntityKey/Id.md) \{ get; set; } | Unique ID of the entity. |
| [Type](https://docs.xbox.com/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PFEntityKey/Type.md) \{ get; set; } | Entity type. See [Available built-in entity types](https://docs.xbox.com/services/playfab/live-service-management/game-configuration/entities/available-built-in-entity-types.md). |

## Remarks

For more information about entities, see [Entities](https://docs.xbox.com/services/playfab/live-service-management/game-configuration/entities/index.md).

## See Also

* namespace [PlayFab.Multiplayer](https://docs.xbox.com/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference.md)


## Related topics

- [Real-time messages for Lobby and Matchmaking APIs](https://docs.xbox.com/services/playfab/multiplayer/real-time-messages/overview.md)
