Namespace: HidSharpAssembly: HidSharp (in HidSharp.dll) Version: 2.0.0
public bool TryGetHidDevice(
out HidDevice device,
Nullable<int> vendorID = null,
Nullable<int> productID = null,
Nullable<int> releaseNumberBcd = null,
string serialNumber = null
)
Public Function TryGetHidDevice (
<OutAttribute> ByRef device As HidDevice,
Optional vendorID As Nullable(Of Integer) = Nothing,
Optional productID As Nullable(Of Integer) = Nothing,
Optional releaseNumberBcd As Nullable(Of Integer) = Nothing,
Optional serialNumber As String = Nothing
) As Boolean
public:
bool TryGetHidDevice(
[OutAttribute] HidDevice^% device,
Nullable<int> vendorID = nullptr,
Nullable<int> productID = nullptr,
Nullable<int> releaseNumberBcd = nullptr,
String^ serialNumber = nullptr
)
member TryGetHidDevice :
device : HidDevice byref *
?vendorID : Nullable<int> *
?productID : Nullable<int> *
?releaseNumberBcd : Nullable<int> *
?serialNumber : string
(* Defaults:
let _vendorID = defaultArg vendorID null
let _productID = defaultArg productID null
let _releaseNumberBcd = defaultArg releaseNumberBcd null
let _serialNumber = defaultArg serialNumber null
*)
-> bool
Parameters
- device
- Type: HidSharpHidDevice
- vendorID (Optional)
- Type: SystemNullableInt32
- productID (Optional)
- Type: SystemNullableInt32
- releaseNumberBcd (Optional)
- Type: SystemNullableInt32
- serialNumber (Optional)
- Type: SystemString
Return Value
Type:
Boolean
Reference