UsbInterruptInPipe.DataReceived Event
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.
Raised when the interrupt pipe receives data from the interrupt IN endpoint.
// 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)