Click or drag to resize

DeviceChangeEventArgsUsbDevice Property

Gets the UsbDevice affected by the event.

Namespace:  WinUsbNet
Assembly:  WinUsbNet (in WinUsbNet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public UsbDevice UsbDevice { get; }

Property Value

Type: UsbDevice

The UsbDevice affected by the DeviceChange event.

Remarks

If a USB device has been attached (IsAttach is true), this field contains a newly created UsbDevice which has already been added to the UsbDevices collection of WinUsbManager.

If a USB device has been detached (IsAttach is false), this field contains the UsbDevice that has been removed from the UsbDevices collection of WinUsbManager. The UsbDevice is closed and its IsAttached property is set to false. It cannot be opened again.

See Also