HidDeviceLoader GetDevices Method (Nullable Int32 , Nullable Int32 , Nullable Int32 , String) | HIDSharp |
Gets a list of connected USB devices, filtered by some criteria.
Namespace: HidSharpAssembly: 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 )
public IEnumerable<HidDevice> GetDevices( Nullable<int> vendorID = null, Nullable<int> productID = null, Nullable<int> productVersion = null, string serialNumber = null )
Public Function GetDevices ( _ Optional vendorID As Nullable(Of Integer) = Nothing, _ Optional productID As Nullable(Of Integer) = Nothing, _ Optional productVersion As Nullable(Of Integer) = Nothing, _ Optional serialNumber As String = Nothing _ ) As IEnumerable(Of HidDevice)
Public Function GetDevices ( _ Optional vendorID As Nullable(Of Integer) = Nothing, _ Optional productID As Nullable(Of Integer) = Nothing, _ Optional productVersion As Nullable(Of Integer) = Nothing, _ Optional serialNumber As String = Nothing _ ) As IEnumerable(Of HidDevice)
public: IEnumerable<HidDevice^>^ GetDevices( Nullable<int> vendorID = nullptr, Nullable<int> productID = nullptr, Nullable<int> productVersion = nullptr, String^ serialNumber = nullptr )
public: IEnumerable<HidDevice^>^ GetDevices( Nullable<int> vendorID = nullptr, Nullable<int> productID = nullptr, Nullable<int> productVersion = nullptr, String^ serialNumber = nullptr )
member GetDevices : ?vendorID : Nullable<int> * ?productID : Nullable<int> * ?productVersion : Nullable<int> * ?serialNumber : string (* Defaults: let _vendorID = defaultArg vendorID null let _productID = defaultArg productID null let _productVersion = defaultArg productVersion null let _serialNumber = defaultArg serialNumber null *) -> IEnumerable<HidDevice>
member GetDevices : ?vendorID : Nullable<int> * ?productID : Nullable<int> * ?productVersion : Nullable<int> * ?serialNumber : string (* Defaults: let _vendorID = defaultArg vendorID null let _productID = defaultArg productID null let _productVersion = defaultArg productVersion null let _serialNumber = defaultArg serialNumber null *) -> IEnumerable<HidDevice>
Parameters
- vendorID (Optional)
- Type:
System Nullable
Int32
The vendor ID, or null to not filter by vendor ID.
- productID (Optional)
- Type:
System Nullable
Int32
The product ID, or null to not filter by product ID.
- productVersion (Optional)
- Type:
System Nullable
Int32
The product version, or null to not filter by product version.
- serialNumber (Optional)
- Type:
System String
The serial number, or null to not filter by serial number.
Return Value
The filtered device list.See Also