C# Класс HidSharp.HidDeviceLoader

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

FreeUsbResources() публичный статический Метод

public static FreeUsbResources ( ) : void
Результат void

GetDeviceOrDefault() публичный Метод

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.
Результат HidDevice

GetDevices() публичный Метод

Gets a list of connected USB devices.
public GetDevices ( ) : IEnumerable
Результат IEnumerable

GetDevices() публичный Метод

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.
Результат IEnumerable

GetDevicesVB() публичный Метод

Gets a list of connected USB devices. This overload is meant for Visual Basic 6 and COM clients.
public GetDevicesVB ( ) : IEnumerable
Результат IEnumerable

HidDeviceLoader() публичный Метод

Initializes a new instance of the HidDeviceLoader class.
public HidDeviceLoader ( ) : System
Результат System