You can access your computer's serial ports through the .NET Framework classes in the System.IO.Ports namespace. The most important class, SerialPort, provides a framework for synchronous and event-driven I/O, access to pin and break states, and access to serial driver properties. It can be wrapped in a Stream object, accessible through the BaseStream property. Wrapping SerialPort in a Stream object allows the serial port to be accessed by classes that use streams. The namespace includes enumerations that simplify the control of serial ports.
The simplest way to create a SerialPort object is through the My.Computer.Ports.OpenSerialPort method.

Enumerations
This table lists and describes the main enumerations used for accessing a serial port:

Tasks
This table lists and describes the main tasks for accessing a serial port:

See Also