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

## メソッド (1/2)

ローカル ユーザーから招待対象のエンティティに、このロビーへの招待を送信します。

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

| パラメーター  | 説明                |
| ------- | ----------------- |
| sender  | 招待を送信するローカル ユーザー。 |
| invitee | 招待されるエンティティ。      |

## 注釈 (1/2)

これは非同期操作です。正常に完了すると、タイトルには `OnLobbySendInviteCompleted result` フィールドが [`Success`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbyError/Success) に設定された [`OnLobbySendInviteCompleted`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbySendInviteCompleted) が提供されます。失敗した場合、タイトルには `OnLobbySendInviteCompleted result` フィールドが失敗を示すエラー コードに設定された [`OnLobbySendInviteCompleted`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbySendInviteCompleted) が提供されます。

*sender* は、このクライアントから参加したこのロビーのローカル ユーザーである必要があります。

***

## メソッド (2/2)

ローカル ユーザーから招待対象のエンティティに、このロビーへの招待を送信します。

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

| パラメーター  | 説明                |
| ------- | ----------------- |
| sender  | 招待を送信するローカル ユーザー。 |
| invitee | 招待されるエンティティ。      |

## 注釈 (2/2)

これは非同期操作です。正常に完了すると、タイトルには `OnLobbySendInviteCompleted result` フィールドが [`Success`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbyError/Success) に設定された [`OnLobbySendInviteCompleted`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbySendInviteCompleted) が提供されます。失敗した場合、タイトルには `OnLobbySendInviteCompleted result` フィールドが失敗を示すエラー コードに設定された [`OnLobbySendInviteCompleted`](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbySendInviteCompleted) が提供されます。

*sender* は、このクライアントから参加したこのロビーのローカル ユーザーである必要があります。

## 関連項目

* 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](/ja-jp/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/PlayFabMultiplayer/OnLobbySendInviteCompleted.md)
- [PFLobbySendInviteCompletedStateChange](/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbysendinvitecompletedstatechange.md)
- [PFLobbySendInvite](/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbysendinvite.md)
- [XblMultiplayerSendInvitesAsync](/ja-jp/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersendinvitesasync.md)
- [XblMultiplayerSendInvitesResult](/ja-jp/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersendinvitesresult.md)
