Share via


MediaDevice.GetDefaultAudioCaptureId(AudioDeviceRole) Method

Definition

Returns the identifier string of the default device for capturing audio in the specified role.

public:
 static Platform::String ^ GetDefaultAudioCaptureId(AudioDeviceRole role);
 static winrt::hstring GetDefaultAudioCaptureId(AudioDeviceRole const& role);
public static string GetDefaultAudioCaptureId(AudioDeviceRole role);
function getDefaultAudioCaptureId(role)
Public Shared Function GetDefaultAudioCaptureId (role As AudioDeviceRole) As String

Parameters

role
AudioDeviceRole

The specified audio device role (console, media, or communications).

Returns

String

Platform::String

winrt::hstring

The identifier string of the default device.

Applies to