> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameStreamingGetServerLocationNameSize

> XGameStreamingGetServerLocationNameSize

# XGameStreamingGetServerLocationNameSize

ストリーミング サーバーのデータ センターの場所名のサイズを取得します。

## Syntax

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

### Parameters

なし。

### Return value

型: size\_t

データ サーバーの場所名のサイズ。

## Remarks

この関数を使用して [XGameStreamingGetServerLocationName](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminggetserverlocationname.md) 用のバッファー領域を割り当てます。

XBOX が Azure データ センターに接続されていない場合、戻り値はゼロになります。

これは、ゲームがストリーミングされていない場合に発生することがあります。プレイヤーが XBOX コンソール ストリーミングを使用してゲームをストリーミングしている場合、または XBOX Developer Kit 経由でストリーミングしていてオーバーライド値が設定されていない場合にも発生することがあります。

## Requirements

**ヘッダー:** xgamestreaming.h

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体および XBOX Series 本体

## See also

[XGameStreaming](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/xgamestreaming_members.md)\
[XGameStreamingGetServerLocationName](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminggetserverlocationname.md)


## Related topics

- [XGameStreamingGetServerLocationName](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminggetserverlocationname.md)
- [XGameStreaming (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/xgamestreaming_members.md)
- [Unity プロジェクトでの GDK API 用 C# ラッパーの使用](https://docs.xbox.com/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XGameStreamingGetTouchBundleVersionNameSize](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminggettouchbundleversionnamesize.md)
- [XGameStreamingGetTouchBundleVersion](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminggettouchbundleversion.md)
