| SerialPortEnumerateSerialPorts Method |
Enumerate all the serial ports and their respected device name by accessing the registry.
Namespace: SerialPortNETAssembly: SerialPortNET (in SerialPortNET.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static Dictionary<string, string> EnumerateSerialPorts()
Public Shared Function EnumerateSerialPorts As Dictionary(Of String, String)
public:
static Dictionary<String^, String^>^ EnumerateSerialPorts()
static member EnumerateSerialPorts : unit -> Dictionary<string, string>
Return Value
Type:
DictionaryString,
StringA dictionary containing device names (e.g. USBSER000, Serial1, ...) and port names (e.g. COM1, COM20, ...), as keys and values respectively.
See Also