Class EndpointsWatcher
Provides a way to watch endpoints adding/removing in the system. More info in the
Endpoints watcher article.
Inherited Members
Namespace: Melanchall.DryWetMidi.Multimedia
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class EndpointsWatcher
Properties
Instance
Gets the instance of EndpointsWatcher.
Declaration
public static EndpointsWatcher Instance { get; }
Property Value
| Type | Description |
|---|---|
| EndpointsWatcher |
Exceptions
| Type | Condition |
|---|---|
| PlatformNotSupportedException | Endpoints watcher API is not supported on the current operating system. |
Events
EndpointAdded
Occurs when a MIDI device has been added to the system.
Declaration
public event EventHandler<EndpointAddedRemovedEventArgs> EndpointAdded
Event Type
| Type | Description |
|---|---|
| EventHandler<EndpointAddedRemovedEventArgs> |
EndpointRemoved
Occurs when a MIDI device has been removed from the system.
Declaration
public event EventHandler<EndpointAddedRemovedEventArgs> EndpointRemoved
Event Type
| Type | Description |
|---|---|
| EventHandler<EndpointAddedRemovedEventArgs> |