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

# XblMultiplayerGetSessionByHandleAsync

> XblMultiplayerGetSessionByHandleAsync

# XblMultiplayerGetSessionByHandleAsync

セッション ハンドル ID を指定して、サーバーからセッション オブジェクトをすべての属性とともに取得します。

## 構文

```cpp theme={null}
HRESULT XblMultiplayerGetSessionByHandleAsync(  
         XblContextHandle xblContext,  
         const char* handleId,  
         XAsyncBlock* async  
)  
```

### パラメーター

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

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

*handleId*   \_In\_\
型: char\*

セッションを一意に識別するマルチプレイヤー ハンドル ID。

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

この操作用の AsyncBlock。

### 戻り値

型: HRESULT

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

## 解説

ハンドルは、セッションへのサービス側のポインターです。handleId は、ハンドルの GUID 識別子です。通常、呼び出し元は、別のプレイヤーの XblMultiplayerActivityDetails または招待から handleId を取得します。

## REST 呼び出し

GET /handles/{handleId}/session を呼び出します。

## 要件

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

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

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

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

## 関連項目

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


## Related topics

- [XblMultiplayerGetSessionByHandleResult](/ja-jp/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayergetsessionbyhandleresult.md)
- [招待の受信](/ja-jp/services/xbox-services/multiplayer/invites/how-to/live-invites-receive.md)
- [MPSD から PlayFab Multiplayer と MPA への移行](/ja-jp/services/xbox-services/multiplayer/mpsd/concepts/live-mpsd-to-mlp.md)
- [マルチプレイヤーの FAQ とトラブルシューティング](/ja-jp/services/xbox-services/multiplayer/mpsd/concepts/live-multiplayer-2015-faq.md)
- [XblMultiplayerGetSessionAsync](/ja-jp/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayergetsessionasync.md)
