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