C# Class HidSharp.HidDeviceLoader

显示文件 Open project: arvydas/BlinkStickDotNet Class Usage Examples

Public Methods

Method Description
FreeUsbResources ( ) : void
GetDeviceOrDefault ( int vendorID = null, int productID = null, int productVersion = null, string serialNumber = null ) : HidDevice

Gets the first connected USB device that matches specified criteria.

GetDevices ( ) : IEnumerable

Gets a list of connected USB devices.

GetDevices ( int vendorID = null, int productID = null, int productVersion = null, string serialNumber = null ) : IEnumerable

Gets a list of connected USB devices, filtered by some criteria.

GetDevicesVB ( ) : IEnumerable

Gets a list of connected USB devices. This overload is meant for Visual Basic 6 and COM clients.

HidDeviceLoader ( ) : System

Initializes a new instance of the HidDeviceLoader class.

Method Details

FreeUsbResources() public static method

public static FreeUsbResources ( ) : void
return void

GetDeviceOrDefault() public method

Gets the first connected USB device that matches specified criteria.
public GetDeviceOrDefault ( int vendorID = null, int productID = null, int productVersion = null, string serialNumber = null ) : HidDevice
vendorID int The vendor ID, or null to not filter by vendor ID.
productID int The product ID, or null to not filter by product ID.
productVersion int The product version, or null to not filter by product version.
serialNumber string The serial number, or null to not filter by serial number.
return HidDevice

GetDevices() public method

Gets a list of connected USB devices.
public GetDevices ( ) : IEnumerable
return IEnumerable

GetDevices() public method

Gets a list of connected USB devices, filtered by some criteria.
public GetDevices ( int vendorID = null, int productID = null, int productVersion = null, string serialNumber = null ) : IEnumerable
vendorID int The vendor ID, or null to not filter by vendor ID.
productID int The product ID, or null to not filter by product ID.
productVersion int The product version, or null to not filter by product version.
serialNumber string The serial number, or null to not filter by serial number.
return IEnumerable

GetDevicesVB() public method

Gets a list of connected USB devices. This overload is meant for Visual Basic 6 and COM clients.
public GetDevicesVB ( ) : IEnumerable
return IEnumerable

HidDeviceLoader() public method

Initializes a new instance of the HidDeviceLoader class.
public HidDeviceLoader ( ) : System
return System