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

# XblMultiplayerSessionSetRawServersJson

> XblMultiplayerSessionSetRawServersJson

# XblMultiplayerSessionSetRawServersJson

設定包含此多人遊戲工作階段之伺服器集合的 JSON 字串。

## 語法

```cpp theme={null}
HRESULT XblMultiplayerSessionSetRawServersJson(  
         XblMultiplayerSessionHandle handle,  
         const char* rawServersJson  
)  
```

### 參數

*handle*   \_In\_\
類型：[XblMultiplayerSessionHandle](/zh-TW/reference/live/xsapi-c/multiplayer_c/handles/xblmultiplayersessionhandle)

多人遊戲工作階段的控制代碼。

*rawServersJson*   \_In\_z\_\
類型：char\*

描述工作階段伺服器的 JSON。

### 傳回值

類型：HRESULT

此 API 作業的 HRESULT 傳回碼。

## 需求

**標頭：** multiplayer\_c.h

**程式庫：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另請參閱

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


## Related topics

- [XblMultiplayerSessionRawServersJson](/zh-TW/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionrawserversjson.md)
- [XblMultiplayerSessionSetMatchmakingTargetSessionConstantsJson](/zh-TW/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsetmatchmakingtargetsessionconstantsjson.md)
- [XblMultiplayerSessionCurrentUserSetCustomPropertyJson](/zh-TW/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessioncurrentusersetcustompropertyjson.md)
- [XblMultiplayerSessionSetServerConnectionStringCandidates](/zh-TW/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsetserverconnectionstringcandidates.md)
- [XblMultiplayerSessionSetMatchmakingServerConnectionPath](/zh-TW/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionsetmatchmakingserverconnectionpath.md)
