Export (0) Print
Expand All
8 out of 12 rated this helpful - Rate this topic

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 a 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 Handshake, Parity, SerialPinChange, and StopBits.

 ClassDescription
Public classSerialDataReceivedEventArgsProvides data for the DataReceived event.
Public classSerialErrorReceivedEventArgsPrepares data for the ErrorReceived event.
Public classSerialPinChangedEventArgsProvides data for the PinChanged event.
Public classSerialPortRepresents a serial port resource.
 DelegateDescription
Public delegateSerialDataReceivedEventHandlerRepresents the method that will handle the DataReceived event of a SerialPort object.
Public delegateSerialErrorReceivedEventHandlerRepresents the method that will handle the ErrorReceived event of a SerialPort object.
Public delegateSerialPinChangedEventHandlerRepresents the method that will handle the PinChanged event of a SerialPort object.
 EnumerationDescription
Public enumerationHandshakeSpecifies the control protocol used in establishing a serial port communication for a SerialPort object.
Public enumerationParitySpecifies the parity bit for a SerialPort object.
Public enumerationSerialDataSpecifies the type of character that was received on the serial port of the SerialPort object.
Public enumerationSerialErrorSpecifies errors that occur on the SerialPort object
Public enumerationSerialPinChangeSpecifies the type of change that occurred on the SerialPort object.
Public enumerationStopBitsSpecifies the number of stop bits used on the SerialPort object.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.