MidiPortConnectionState public enum MidiPortConnectionState Documentation Code Closed = 1 Open = 0 Pending = 2