Bagikan melalui


MidiInPort.MessageReceived Kejadian

Definisi

Terjadi ketika MidiInPort menerima data.

// 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) 

Jenis Acara

Keterangan

Aplikasi harus berlangganan peristiwa ini untuk menangani pesan input.

Jika mengakses bagian mana pun dari pesan menghasilkan pengecualian, dapat diasumsikan bahwa MidiInPort telah terputus dari perangkat.

Berlaku untuk