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

# XGameStreamingConnectionState

> XGameStreamingConnectionState

# XGameStreamingConnectionState

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

<a id="syntaxSection" />

## Syntax

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

<a id="constantsSection" />

## Constants

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

<a id="remarksSection" />

## Remarks

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

[XGameStreamingClientChangedCallback](/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback) は、ストリーミング デバイスが接続または切断されるたびに呼び出されます。

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

<a id="requirementsSection" />

## Requirements

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

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

<a id="seealsoSection" />

## See also

[XGameStreaming](/reference/system/xgamestreaming/xgamestreaming_members)\
[XGameStreamingClientChangedCallback](/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback)\
[XGameStreamingUnregisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingunregisterconnectionstatechanged)\
[XGameStreamingRegisterConnectionStateChanged](/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged)


## Related topics

- [XGameStreamingConnectionStateChangedCallback](/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback.md)
- [XGameStreamingIsStreaming](/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingisstreaming.md)
- [XGameStreamingGetConnectionState](/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminggetconnectionstate.md)
- [XGameStreamingRegisterConnectionStateChanged](/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md)
- [XGameStreaming](/ja-jp/reference/system/xgamestreaming/xgamestreaming_members.md)
