ZylSerialPort.NET

SerialPort.GetExistingCommPorts Method 

Returns the existing serial ports of the system.

[Visual Basic]
Public Shared Function GetExistingCommPorts() As SerialCommPort()
[C#]
public static SerialCommPort[] GetExistingCommPorts();

Return Value

Existing serial ports of the system in an array of SerialCommPort objects.

See Also

SerialPort Class | ZylSerialPort Namespace