Starts this input device receiving messages.
This method launches a background thread to listen for input events, and as events are received, the event handlers are invoked on that background thread. Event handlers should be written to work from a background thread. (For example, if they want to update the GUI, they may need to BeginInvoke to arrange for GUI updates to happen on the correct thread.)
The background thread which is created by this method is joined (shut down) in StopReceiving.
Exception Type | Condition |
---|---|
InvalidOperationException | The device is not open or is already receiving. |
DeviceException | The device cannot start receiving. |
InputDevice Class | Midi Namespace