AudioPlaybackConnectionState Enum

Definition

Specifies the connection state of an AudioPlaybackConnection.

public enum class AudioPlaybackConnectionState
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 655360)]
enum class AudioPlaybackConnectionState
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 655360)]
public enum AudioPlaybackConnectionState
var value = Windows.Media.Audio.AudioPlaybackConnectionState.closed
Public Enum AudioPlaybackConnectionState
Inheritance
AudioPlaybackConnectionState
Attributes

Windows requirements

Device family
Windows 10, version 2004 (introduced in 10.0.19041.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v10.0)

Fields

Closed 0

The connection is closed.

Opened 1

The connection is open.

Remarks

Open a connection by calling Open or OpenAsync.

Get the current state of a connection by checking the State property. Receive notifiations when the connection state changes by implementing a handler for the StateChanged event.

Applies to

See also