Share via


UsbInterruptInEventArgs Class

Definition

Represents the object that is passed as a parameter to the event handler for the DataReceived event.

public ref class UsbInterruptInEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class UsbInterruptInEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UsbInterruptInEventArgs
Public NotInheritable Class UsbInterruptInEventArgs
Inheritance
Object Platform::Object IInspectable UsbInterruptInEventArgs
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

UsbInterruptInEventArgs is used to access data from an interrupt IN pipe. When data arrives in an interrupt IN pipe, it raises the DataReceived event. You must register an event handler for the event. That event handler's parameter is a UsbInterruptInEventArgs object. After the event handler is invoked, you can access the data by using the InterruptData property.

function onDataReceived(eventArgs) 
{ 
    /* Your code */ 
    var interruptData = eventArgs.interruptData;
}

Properties

InterruptData

Gets data from the interrupt IN endpoint.

Applies to