Class DeviceNotificationEventArgs
- Namespace
- NAudio.CoreAudioApi
- Assembly
- NAudio.Wasapi.dll
Base event data for an endpoint device notification raised by MMDeviceNotificationClient. Carries the endpoint ID string that identifies the device the notification is about. Treat the ID as opaque — pass it to GetDevice(string) or compare it against ID, but do not parse it.
public class DeviceNotificationEventArgs : EventArgs
- Inheritance
-
DeviceNotificationEventArgs
- Derived
- Inherited Members
Constructors
DeviceNotificationEventArgs(string)
Initializes a new instance of the DeviceNotificationEventArgs class.
public DeviceNotificationEventArgs(string deviceId)
Parameters
deviceIdstringThe endpoint ID string of the affected device.
Properties
DeviceId
The endpoint ID string of the device the notification concerns. May be null for a
DefaultDeviceChanged notification when there is no
longer a default device for the reported flow/role.
public string DeviceId { get; }