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

Gets the size of the name of the location of the streaming server's datacenter.

<a id="syntaxSection" />

## Syntax

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

<a id="parametersSection" />

### Parameters

None.

<a id="retvalSection" />

### Return value

Type: size\_t

The size of the name of the location of the Data Server.

<a id="remarksSection" />

## Remarks

Use this function to allocate buffer space for the [XGameStreamingGetServerLocationName](/reference/system/xgamestreaming/functions/xgamestreaminggetserverlocationname).

The return value will be zero if the XBOX is not connected to an Azure datacenter.

This can occur if the game is not streaming. It can also happen if the player is using XBOX Console Streaming to stream the game, or stream via an XBOX Developer Kit if no override value has been set.

<a id="requirementsSection" />

## Requirements

**Header:** xgamestreaming.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

<a id="seealsoSection" />

## See also

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


## Related topics

- [XGameStreamingGetServerLocationName](/reference/system/xgamestreaming/functions/xgamestreaminggetserverlocationname.md)
- [XGameStreaming](/reference/system/xgamestreaming/xgamestreaming_members.md)
- [Unity C# API wrappers for the GDK](/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XGameStreamingGetTouchBundleVersionNameSize](/reference/system/xgamestreaming/functions/xgamestreaminggettouchbundleversionnamesize.md)
- [Optimizing your game for XBOX Game Streaming](/build/core-features/common/game-streaming/game-streaming-optimizing-your-game.md)
