MidiPort Class

Definition

Input and Output ports.

public class MidiPort : CoreMidi.MidiObject
type MidiPort = class
    inherit MidiObject
Inheritance
MidiPort

Remarks

The input and output port objects are created by calling the CreateInputPort(String) or CreateOutputPort(String) methods.

Properties

Client

The MidiClient that created this port.

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from MidiObject)
PortName

The port name specified when the port was created

Methods

ConnectSource(MidiEndpoint)

Connects an input port to an endpoint.

Disconnect(MidiEndpoint)

Disconnects the port from the specified endpoint.

Dispose()

Releases the resources used by the MidiObject object.

(Inherited from MidiObject)
Dispose(Boolean)

Releases the resources used by the MidiPort object.

GetData(IntPtr) (Inherited from MidiObject)
GetDictionaryProperties(Boolean)

Returns the object properties as a dictionary.

(Inherited from MidiObject)
GetString(IntPtr) (Inherited from MidiObject)
RemoveProperty(String) (Inherited from MidiObject)
Send(MidiEndpoint, MidiPacket[])

Sends a set of MidiPackets to the specified endpoint.

SetData(IntPtr, NSData) (Inherited from MidiObject)
SetString(IntPtr, String) (Inherited from MidiObject)
ToString()

Returns a human-readable description of this port.

Events

MessageReceived

Event raised when data has been received on this port.

Applies to

See also