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

# XblMultiplayerSendInvitesAsync

> XblMultiplayerSendInvitesAsync

# XblMultiplayerSendInvitesAsync

指定されたユーザーをセッションに招待します。これにより、標準の招待テキストを使用した通知が各招待ユーザーに表示されます。ユーザーがその通知を受け入れると、タイトルがアクティブ化されます。

## 構文

```cpp theme={null}
HRESULT XblMultiplayerSendInvitesAsync(  
         XblContextHandle xblContext,  
         const XblMultiplayerSessionReference* sessionReference,  
         const uint64_t* xuids,  
         size_t xuidsCount,  
         uint32_t titleId,  
         const char* contextStringId,  
         const char* customActivationContext,  
         XAsyncBlock* async  
)  
```

### パラメーター

*xblContext*   \_In\_\
型: [XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

ローカル ユーザーの XBOX Live コンテキスト。

*sessionReference*   \_In\_\
型: [XblMultiplayerSessionReference\*](/reference/live/xsapi-c/multiplayer_c/structs/xblmultiplayersessionreference)

対象ユーザーが招待されるセッションを表す XblMultiplayerSessionReference オブジェクト。

*xuids*   \_In\_\
型: uint64\_t\*

招待される XBOX ユーザー ID の一覧。

*xuidsCount*   \_In\_\
型: size\_t

xuids 配列のサイズ。

*titleId*   \_In\_\
型: uint32\_t

招待されたユーザーがセッションに参加するためにアクティブ化するタイトルの ID。

*contextStringId*   \_In\_opt\_z\_\
型: char\*

カスタム コンテキスト文字列 ID。この文字列 ID は、標準の招待テキストに追加される招待テキストを識別するために XBOX Live 取り込み時に定義されます。ID 文字列の先頭には " /// " を付ける必要があります。カスタム文字列を招待に追加しない場合は nullptr を渡します。

*customActivationContext*   \_In\_opt\_z\_\
型: char\*

アクティブ化コンテキスト文字列。招待されたゲーム クライアントに渡され、必要に応じて解釈されるゲーム定義文字列。(オプション)

*async*   \_In\_\
型: XAsyncBlock\*

この操作用の AsyncBlock。

### 戻り値

型: HRESULT

この API 操作の HRESULT 戻り値コード。

## 要件

**ヘッダー:** multiplayer\_c.h

**ライブラリ:** Microsoft.Xbox.Services.14x.GDK.C.lib

## 概念に関するドキュメント

* [招待の送信](/services/xbox-services/multiplayer/invites/how-to/live-invites-send)

## 関連項目

[multiplayer\_c](/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members)


## Related topics

- [招待の送信](/ja-jp/services/xbox-services/multiplayer/invites/how-to/live-invites-send.md)
- [MPSD から PlayFab Multiplayer と MPA への移行](/ja-jp/services/xbox-services/multiplayer/mpsd/concepts/live-mpsd-to-mlp.md)
- [Multiplayer Session Directory の概要](/ja-jp/services/xbox-services/multiplayer/mpsd/live-mpsd-overview.md)
- [マルチプレイヤータスク](/ja-jp/services/xbox-services/multiplayer/mpsd/how-to/live-mpsd-how-tos.md)
- [XBOX services 呼び出しのベストプラクティス](/ja-jp/services/xbox-services/develop/best-practices/live-best-practices-calling-xbl.md)
