Click or drag to resize
SerialPortEnumerateSerialPorts Method
Enumerate all the serial ports and their respected device name by accessing the registry.

Namespace: SerialPortNET
Assembly: SerialPortNET (in SerialPortNET.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static Dictionary<string, string> EnumerateSerialPorts()

Return Value

Type: DictionaryString, String
A dictionary containing device names (e.g. USBSER000, Serial1, ...) and port names (e.g. COM1, COM20, ...), as keys and values respectively.
See Also