MidiOutPort class

[This documentation is preliminary and is subject to change.]

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

Important  

The WindowsPreview.Devices.Midi API are preview API and are not included in the Windows Software Development Kit (SDK). The API are distributed as a NuGet package. See WindowsPreview.Devices.Midi for info on how to download and install the NuGet package in your project.

WindowsPreview.Devices.Midi API require Windows 8.1 Update and later.

See the MIDI Windows Runtime sample for an example of how to use these classes.

Syntax

var midiOutPort = WindowsPreview.Devices.Midi.MidiOutPort;
public sealed class MidiOutPort : IDisposable
Public NotInheritable Class MidiOutPort
    Implements IDisposable
public ref class MidiOutPort sealed : IClosable

Attributes

[MarshalingBehavior(Agile)]

[Threading(MTA)]

[Version(0x06030000)]

Members

The MidiOutPort class has these types of members:

  • Methods
  • Properties

Methods

The MidiOutPort class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

Method Description
Close Closes the MidiOutPort.
FromIdAsync 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 Send the specified data buffer to the device associated with this MidiOutPort.
SendMessage Send the data in the specified MIDI message to the device associated with this MidiOutPort.

 

Properties

The MidiOutPort class has these properties.

Property Access type Description

DeviceId

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

 

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Namespace

WindowsPreview.Devices.Midi WindowsPreview::Devices::Midi [C++]

Metadata

WindowsPreview.winmd

See also

Object

IClosable

MIDI Windows Runtime sample