Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

MidiOutPort Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Represents a port used to send MIDI messages to a MIDI device.

public ref class MidiOutPort sealed : IMidiOutPort, IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MidiOutPort final : IMidiOutPort, IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MidiOutPort : System.IDisposable, IMidiOutPort
Public NotInheritable Class MidiOutPort
Implements IDisposable, IMidiOutPort
Inheritance
Object Platform::Object IInspectable MidiOutPort
Attributes
Implements

Windows requirements

Requirements Description
Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

Name Description
DeviceId

Gets the id of the device that was used to initialize the MidiOutPort.

Methods

Name Description
Close()

Closes the MidiOutPort.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

FromIdAsync(String)

Creates a MidiOutPort object for the specified device.

GetDeviceSelector()

Gets a query string that can be used to enumerate all MidiOutPort objects on the system.

SendBuffer(IBuffer)

Send the specified data buffer to the device associated with this MidiOutPort.

SendMessage(IMidiMessage)

Send the data in the specified MIDI message to the device associated with this MidiOutPort.

Applies to

See also


Feedback

Was this page helpful?