Skip to main content

DeviceConnectionEventArgs Class

NuGet: GHIElectronics.TinyCLR.Devices.UsbHost
Assembly: GHIElectronics.TinyCLR.Devices.UsbHost
Namespace: GHIElectronics.TinyCLR.Devices.UsbHost

The event arguments for a device connection change.

public class DeviceConnectionEventArgs : EventArgs

Properties

Id

public uint Id { get; }

The device id.

InterfaceIndex

public byte InterfaceIndex { get; }

The logical device interface index.

Type

public BaseDevice.DeviceType Type { get; }

The device's type.

VendorId

public ushort VendorId { get; }

The device's vendor id.

ProductId

public ushort ProductId { get; }

The device's product id.

PortNumber

public byte PortNumber { get; }

The device's USB port number.

DeviceStatus

public DeviceConnectionStatus DeviceStatus { get; }

The device's connection status.