System.IO.Ports

System.IO.Ports Namespace

 

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.

ClassDescription
System_CAPS_pubclassSerialDataReceivedEventArgs

Provides data for the DataReceived event.

System_CAPS_pubclassSerialErrorReceivedEventArgs

Prepares data for the ErrorReceived event.

System_CAPS_pubclassSerialPinChangedEventArgs

Provides data for the PinChanged event.

System_CAPS_pubclassSerialPort

Represents a serial port resource.

To browse the .NET Framework source code for this type, see the Reference Source.

DelegateDescription
System_CAPS_pubdelegateSerialDataReceivedEventHandler

Represents the method that will handle the DataReceived event of a SerialPort object.

System_CAPS_pubdelegateSerialErrorReceivedEventHandler

Represents the method that will handle the ErrorReceived event of a SerialPort object.

System_CAPS_pubdelegateSerialPinChangedEventHandler

Represents the method that will handle the PinChanged event of a SerialPort object.

EnumerationDescription
System_CAPS_pubenumHandshake

Specifies the control protocol used in establishing a serial port communication for a SerialPort object.

System_CAPS_pubenumParity

Specifies the parity bit for a SerialPort object.

System_CAPS_pubenumSerialData

Specifies the type of character that was received on the serial port of the SerialPort object.

System_CAPS_pubenumSerialError

Specifies errors that occur on the SerialPort object.

System_CAPS_pubenumSerialPinChange

Specifies the type of change that occurred on the SerialPort object.

System_CAPS_pubenumStopBits

Specifies the number of stop bits used on the SerialPort object.

The namespace includes enumerations that simplify the control of serial ports, such as Handshake, Parity, SerialPinChange, and StopBits.

Return to top
Show:
© 2016 Microsoft