Dela via


CastingConnectionState Enum

Definition

Indicates the current state of a casting connection. Rendering is used when actively playing content.

public enum class CastingConnectionState
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class CastingConnectionState
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum CastingConnectionState
var value = Windows.Media.Casting.CastingConnectionState.disconnected
Public Enum CastingConnectionState
Inheritance
CastingConnectionState
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Disconnected 0

The casting connection has been disconnected.

Connected 1

The casting connection is active.

Rendering 2

The casting connection is actively playing content.

Disconnecting 3

The connection is being disconnected.

Connecting 4

The connection is connecting.

Applies to