> ## 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](/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](/reference/system/xgamestreaming/xgamestreaming_members)\
[XGameStreamingGetServerLocationName](/reference/system/xgamestreaming/functions/xgamestreaminggetserverlocationname)


## Related topics

- [XGameStreamingGetServerLocationName](/zh-CN/reference/system/xgamestreaming/functions/xgamestreaminggetserverlocationname.md)
- [XGameStreaming](/zh-CN/reference/system/xgamestreaming/xgamestreaming_members.md)
- [面向 GDK 的 Unity C# API 包装器](/zh-CN/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XGameStreamingGetTouchBundleVersionNameSize](/zh-CN/reference/system/xgamestreaming/functions/xgamestreaminggettouchbundleversionnamesize.md)
- [XGameStreamingGetTouchBundleVersion](/zh-CN/reference/system/xgamestreaming/functions/xgamestreaminggettouchbundleversion.md)
