List the comm ports available on a system.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static List<CommPortName> EnumeratePorts( bool withOpenableCheck )
Public Shared Function EnumeratePorts ( _ withOpenableCheck As Boolean _ ) As List(Of CommPortName)
public: static List<CommPortName^>^ EnumeratePorts( bool withOpenableCheck )
Parameters
- withOpenableCheck (Boolean)
- If true, only list ports that can be opened