public class DeviceNotificationEventArgs : EventArgs
Provides basic data for all device notification events.
DeviceNotificationEventArgs(String deviceId)
Initializes a new instance of the DeviceNotificationEventArgs class.
public void DeviceNotificationEventArgs(String deviceId)
Parameters
deviceId
StringThe device id that identifies the audio endpoint device.
TryGetDevice(MMDevice& device)
Tries the get device associated with the DeviceId.
public Boolean TryGetDevice(MMDevice& device)
Parameters
device
MMDevice&The device associated with the DeviceId. If the return value is false, the device will be null.
Returns
true if the associated device be successfully retrieved; false otherwise.
DeviceId
Gets the device id that identifies the audio endpoint device.
public String DeviceId { get; set; }