| Namespace | Windows.Devices.Midi2.Enumeration.Legacy |
|---|---|
| Type Name | MidiLegacyPortDeviceWatcher |
| Type | WinRT Runtime Class |
| IDL | MidiLegacyPortDeviceWatcher.idl |
| Library |
This class is the legacy equivalent of MidiEndpointDeviceWatcher, but for MIDI 1.0 ports created by Windows MIDI Services.
| Static Method | Description |
|---|---|
Create() |
Create a watcher for all MIDI 1.0 ports |
Create(flow) |
Create a watcher for MIDI 1.0 ports in the specified direction |
| Method | Description |
|---|---|
Start() |
Begin enumeration. Wire up event handlers before calling this. |
Stop() |
Stop enumeration. |
| Property | Description |
|---|---|
Status |
The current DeviceWatcherStatus |
EnumeratedEndpointDevices |
Map of all currently enumerated MIDI 1.0 ports, keyed by port device id |
| Event | Description |
|---|---|
Added(source, args) |
A new MIDI 1.0 port has been added |
Removed(source, args) |
A MIDI 1.0 port has been removed |
Updated(source, args) |
A MIDI 1.0 port has been updated |
EnumerationCompleted(source) |
Initial enumeration has completed |
Stopped(source) |
The watcher has been stopped |
