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

# XGameStreamingConnectionState

> XGameStreamingConnectionState

# XGameStreamingConnectionState

ストリーミング クライアント デバイスの接続状態を格納します。

## Syntax

```cpp theme={null}
enum class XGameStreamingConnectionState  : uint32_t
{
    Disconnected = 0,
    Connected = 1
}
```

## Constants

| 定数 | 説明 |
| - | - |
| Disconnected | クライアント デバイスは現在切断されています。 |
| Connected | クライアント デバイスは現在接続されています。 |

## Remarks

デバイスは、`Connected` または `Disconnected` のいずれかの状態にあります。

[XGameStreamingClientChangedCallback](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback.md) は、ストリーミング デバイスが接続または切断されるたびに呼び出されます。

[XGameStreamingRegisterConnectionStateChanged](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md) を通じて登録すると、既に接続されているデバイスに対してコールバックが呼び出されます。

## Requirements

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

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

## See also

[XGameStreaming](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/xgamestreaming_members.md)\
[XGameStreamingClientChangedCallback](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback.md)\
[XGameStreamingUnregisterConnectionStateChanged](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingunregisterconnectionstatechanged.md)\
[XGameStreamingRegisterConnectionStateChanged](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md)


## Related topics

- [XGameStreamingConnectionStateChangedCallback](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback.md)
- [XGameStreamingIsStreaming](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingisstreaming.md)
- [XGameStreamingGetConnectionState](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminggetconnectionstate.md)
- [XGameStreamingRegisterConnectionStateChanged](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md)
- [XGameStreaming (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/xgamestreaming_members.md)
