次の方法で共有


UsbInterruptInPipe.DataReceived イベント

定義

割り込みパイプが割り込み IN エンドポイントからデータを受信したときに発生します。

// Register
event_token DataReceived(TypedEventHandler<UsbInterruptInPipe, UsbInterruptInEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
UsbInterruptInPipe::DataReceived_revoker DataReceived(auto_revoke_t, TypedEventHandler<UsbInterruptInPipe, UsbInterruptInEventArgs const&> const& handler) const;
public event TypedEventHandler<UsbInterruptInPipe,UsbInterruptInEventArgs> DataReceived;
function onDataReceived(eventArgs) { /* Your code */ }
usbInterruptInPipe.addEventListener("datareceived", onDataReceived);
usbInterruptInPipe.removeEventListener("datareceived", onDataReceived);
- or -
usbInterruptInPipe.ondatareceived = onDataReceived;
Public Custom Event DataReceived As TypedEventHandler(Of UsbInterruptInPipe, UsbInterruptInEventArgs) 

イベントの種類

適用対象