The System.IO.Ports namespace contains classes for controlling serial ports. The most important class, System.IO.Ports.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 used to wrap a System.IO.Stream objects, allowing the serial port to be accessed by classes that use streams.
The namespace includes enumerations that simplify the control of serial ports, such as System.IO.Ports.Handshake, System.IO.Ports.Parity, System.IO.Ports.SerialPinChange, and System.IO.Ports.StopBits.
Specifies the control protocol used in establishing a serial port communication for a System.IO.Ports.SerialPort object.
Specifies the parity bit for a System.IO.Ports.SerialPort object.
Specifies the type of character that was received on the serial port of the System.IO.Ports.SerialPort object.
Provides data for the System.IO.Ports.SerialPort.DataReceived event.
Specifies errors that occur on the System.IO.Ports.SerialPort object.
Prepares data for the System.IO.Ports.SerialPort.ErrorReceived event.
Specifies the type of change that occurred on the System.IO.Ports.SerialPort object.
Provides data for the System.IO.Ports.SerialPort.PinChanged event.
Represents a serial port resource.
Specifies the number of stop bits used on the System.IO.Ports.SerialPort object.