Class DeviceStateChangedEventArgs
- Namespace
- NAudio.CoreAudioApi
- Assembly
- NAudio.Wasapi.dll
Event data for DeviceStateChanged.
public sealed class DeviceStateChangedEventArgs : DeviceNotificationEventArgs
- Inheritance
-
DeviceStateChangedEventArgs
- Inherited Members
Constructors
DeviceStateChangedEventArgs(string, DeviceState)
Initializes a new instance of the DeviceStateChangedEventArgs class.
public DeviceStateChangedEventArgs(string deviceId, DeviceState newState)
Parameters
deviceIdstringThe endpoint ID string of the affected device.
newStateDeviceStateThe device's new state.
Properties
NewState
The new DeviceState of the device.
public DeviceState NewState { get; }