SerialPort controls a serial port file resource.
Example
1. Gets all serial port names for the current computer.
List<String> serialPorts = new List<String>();
foreach (String portName in System.IO.Ports.SerialPort.GetPortNames())
{
serialPorts.Add(portName);
}