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

> /handles/query

# /handles/query

支援 POST 作業，以建立工作階段控制代碼的查詢。

> **注意：**\
> 此 URI 由 2015 多人遊戲使用，僅適用於該多人遊戲版本及更新版本。其適用於範本合約 104/105 或更新版本。

<a id="ID4EQ" />

## 網域

sessiondirectory.xboxlive.com

<a id="ID4EV" />

## 備註

此 URI 支援控制代碼的查詢。工作階段查詢為字串查詢和批次查詢，而控制代碼查詢則不同，使用查詢處理器樣式。最多支援 100 個控制代碼。

<a id="ID4E2" />

## URI 參數

無

<a id="ID4EEB" />

## 有效的方法

[POST (/handles/query)](/zh-TW/reference/live/rest/uri/sessiondirectory/uri-handlesquerypost)

  建立工作階段控制代碼的查詢。

[POST (/handles/query?include=relatedInfo)](/zh-TW/reference/live/rest/uri/sessiondirectory/uri-handlesqueryincludepost)

  建立包含相關工作階段資訊的工作階段控制代碼查詢。

<a id="ID4EQB" />

## 另請參閱

<a id="ID4ESB" />

##### 上層

[工作階段目錄 URI](/zh-TW/reference/live/rest/uri/sessiondirectory/atoc-reference-sessiondirectory)


## Related topics

- [Multiplayer session browse](/services/xbox-services/multiplayer/concepts/live-session-browse.md)
- [XStoreCloseProductsQueryHandle](/reference/system/xstore/functions/xstorecloseproductsqueryhandle.md)
