HidDeviceLoader GetDevices Method (Nullable Int32 , Nullable Int32 , Nullable Int32 , String)HIDSharp
Gets a list of connected USB devices, filtered by some criteria.

Namespace: HidSharp
Assembly: HidSharp (in HidSharp.dll) Version: 1.5.0.0 (1.5.0.0)
Syntax

public IEnumerable<HidDevice> GetDevices(
	Nullable<int> vendorID = null,
	Nullable<int> productID = null,
	Nullable<int> productVersion = null,
	string serialNumber = null
)

Parameters

vendorID (Optional)
Type: OnlineSystem Nullable OnlineInt32 
The vendor ID, or null to not filter by vendor ID.
productID (Optional)
Type: OnlineSystem Nullable OnlineInt32 
The product ID, or null to not filter by product ID.
productVersion (Optional)
Type: OnlineSystem Nullable OnlineInt32 
The product version, or null to not filter by product version.
serialNumber (Optional)
Type: OnlineSystem String
The serial number, or null to not filter by serial number.

Return Value

The filtered device list.
See Also