DeviceListGetSerialDeviceOrNull Method (String)

HIDSharp
Gets the connected serial device with the specific device path or filesystem name.

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

public SerialDevice GetSerialDeviceOrNull(
	string portName
)

Parameters

portName
Type: SystemString
The device path or filesystem name.

Return Value

Type: SerialDevice
The device, or null if none was found.
See Also

Reference