Share via


AudioPlaybackConnection.DeviceId Property

Definition

Gets the unique device ID for the underlying device represented by the AudioPlaybackConnection.

public:
 property Platform::String ^ DeviceId { Platform::String ^ get(); };
winrt::hstring DeviceId();
public string DeviceId { get; }
var string = audioPlaybackConnection.deviceId;
Public ReadOnly Property DeviceId As String

Property Value

String

Platform::String

winrt::hstring

The unique device ID for the underlying device represented by the AudioPlaybackConnection.

Remarks

The returned ID is the same ID used to create the connection in the call to TryCreateFromId. If the connection was created from a transport that does not have a corresponding transport device, then this property’s value is an empty string.

Applies to