DeviceListGetSerialDeviceOrNull Method HIDSharp
Gets the connected serial device with the specific port name.

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

public SerialDevice GetSerialDeviceOrNull(
	string portName
)

Parameters

portName
Type: SystemString
The port name.

Return Value

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

Reference