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

# /handles/{handleId}/session

> /handles/{handleId}/session

# /handles/{handleId}/session

使用句柄取消引用来支持会话的 PUT 和 GET 操作。

> **注意：**\
> 此 URI 由 2015 多人游戏使用，仅适用于该多人游戏版本及更高版本。它旨在与模板协定 104/105 或更高版本一起使用。

> **注意：**\
> 此 URI 当前仅可由 XBOX One 控制台和使用服务标识符的服务器外部访问。

## 域

sessiondirectory.xboxlive.com

## URI 参数

\| 参数| 类型| 说明|
\| --- | --- | --- | --- | --- |
\| handleId| GUID| 会话句柄的唯一 ID。|

## 有效方法

[GET (/handles/{handleId}/session)](https://devdocs.xbox.com/zh-CN/reference/live/rest/uri/sessiondirectory/uri-handleshandleidsessionget)

  获取指定句柄标识符的会话对象。

[PUT (/handles/{handle-id}/session)](https://devdocs.xbox.com/zh-CN/reference/live/rest/uri/sessiondirectory/uri-handleshandleidsessionput)

  通过取消引用句柄来创建或更新会话。

## 另请参阅

##### 上级

[会话目录 URI](https://devdocs.xbox.com/zh-CN/reference/live/rest/uri/sessiondirectory/atoc-reference-sessiondirectory)


## Related topics

- [XblMultiplayerGetSessionByHandleAsync](https://devdocs.xbox.com/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayergetsessionbyhandleasync.md)
- [XblMultiplayerWriteSessionByHandleAsync](https://devdocs.xbox.com/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayerwritesessionbyhandleasync.md)
