Compartir a través de


MidiInPort.MessageReceived Evento

Definición

Se produce cuando MidiInPort recibe datos.

// Register
event_token MessageReceived(TypedEventHandler<MidiInPort, MidiMessageReceivedEventArgs const&> const& handler) const;

// Revoke with event_token
void MessageReceived(event_token const* cookie) const;

// Revoke with event_revoker
MidiInPort::MessageReceived_revoker MessageReceived(auto_revoke_t, TypedEventHandler<MidiInPort, MidiMessageReceivedEventArgs const&> const& handler) const;
public event TypedEventHandler<MidiInPort,MidiMessageReceivedEventArgs> MessageReceived;
function onMessageReceived(eventArgs) { /* Your code */ }
midiInPort.addEventListener("messagereceived", onMessageReceived);
midiInPort.removeEventListener("messagereceived", onMessageReceived);
- or -
midiInPort.onmessagereceived = onMessageReceived;
Public Custom Event MessageReceived As TypedEventHandler(Of MidiInPort, MidiMessageReceivedEventArgs) 

Tipo de evento

Comentarios

Las aplicaciones deben suscribirse a este evento para controlar los mensajes de entrada.

Si el acceso a cualquier parte del mensaje da como resultado una excepción, se puede suponer que MidiInPort se ha desconectado del dispositivo.

Se aplica a