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

# Lobby.SendInvite

> Lobby.SendInvite

## Method (1 of 2)

Send an invite to this lobby from the local user to the invited entity.

```csharp theme={null}
public void SendInvite(PFEntityKey sender, PFEntityKey invitee)
```

| parameter | description                        |
| --------- | ---------------------------------- |
| sender    | The local user sending the invite. |
| invitee   | The invited entity.                |

## Remarks (1 of 2)

This is an asynchronous operation. Upon successful completion, the title will be provided a [`OnLobbySendInviteCompleted`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbySendInviteCompleted) with the `OnLobbySendInviteCompleted result` field set to [`Success`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbyError/Success). Upon a failed completion, the title will be provided a [`OnLobbySendInviteCompleted`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbySendInviteCompleted) with the `OnLobbySendInviteCompleted result` field set to a failed error code.

The *sender* must be a local user of this lobby which joined from this client.

***

## Method (2 of 2)

Send an invite to this lobby from the local user to the invited entity.

```csharp theme={null}
public void SendInvite(PlayFabAuthenticationContext sender, PFEntityKey invitee)
```

| parameter | description                        |
| --------- | ---------------------------------- |
| sender    | The local user sending the invite. |
| invitee   | The invited entity.                |

## Remarks (2 of 2)

This is an asynchronous operation. Upon successful completion, the title will be provided a [`OnLobbySendInviteCompleted`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbySendInviteCompleted) with the `OnLobbySendInviteCompleted result` field set to [`Success`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbyError/Success). Upon a failed completion, the title will be provided a [`OnLobbySendInviteCompleted`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbySendInviteCompleted) with the `OnLobbySendInviteCompleted result` field set to a failed error code.

The *sender* must be a local user of this lobby which joined from this client.

## See Also

* class [PFEntityKey](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PFEntityKey/overview)
* class [Lobby](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/Lobby/overview)
* namespace [PlayFab.Multiplayer](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference)


## Related topics

- [PlayFabMultiplayer.OnLobbySendInviteCompleted](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbySendInviteCompleted.md)
- [PFLobbySendInviteCompletedStateChange](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbysendinvitecompletedstatechange.md)
- [PFLobbySendInvite](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbysendinvite.md)
- [Lobby invites](/services/playfab/multiplayer/lobby/lobby-invites.md)
- [Use lobby and matchmaking together](/services/playfab/multiplayer/lobby/lobby-and-matchmaking.md)
