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

# XGameStreamingGetServerLocationNameSize

> XGameStreamingGetServerLocationNameSize

# XGameStreamingGetServerLocationNameSize

取得串流伺服器資料中心所在位置名稱的大小。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
size_t XGameStreamingGetServerLocationNameSize()
```

<a id="parametersSection" />

### 參數

無。

<a id="retvalSection" />

### 傳回值

類型：size\_t

資料伺服器所在位置名稱的大小。

<a id="remarksSection" />

## 備註

使用此函式為 [XGameStreamingGetServerLocationName](/zh-TW/reference/system/xgamestreaming/functions/xgamestreaminggetserverlocationname) 配置緩衝區空間。

如果 XBOX 未連線至 Azure 資料中心，傳回值將為零。

如果遊戲未在串流，就可能發生這種情況。如果玩家使用 XBOX 主機串流來串流遊戲，或在未設定覆寫值的情況下透過 XBOX 開發套件進行串流，也可能發生這種情況。

<a id="requirementsSection" />

## 需求

**標頭：** xgamestreaming.h

**程式庫：** xgameruntime.lib

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

<a id="seealsoSection" />

## 另請參閱

[XGameStreaming](/zh-TW/reference/system/xgamestreaming/xgamestreaming_members)\
[XGameStreamingGetServerLocationName](/zh-TW/reference/system/xgamestreaming/functions/xgamestreaminggetserverlocationname)


## Related topics

- [XGameStreamingGetServerLocationNameSize](/reference/system/xgamestreaming/functions/xgamestreaminggetserverlocationnamesize.md)
- [XGameStreamingGetServerLocationName](/reference/system/xgamestreaming/functions/xgamestreaminggetserverlocationname.md)
