Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
System.IO.Ports Namespace

Updated: November 2007

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
tf8zk72w.pubclass(en-us,VS.90).gifSerialDataReceivedEventArgs Provides data for the DataReceived event.
tf8zk72w.pubclass(en-us,VS.90).gifSerialErrorReceivedEventArgs Prepares data for the ErrorReceived event.
tf8zk72w.pubclass(en-us,VS.90).gifSerialPinChangedEventArgs Provides data for the PinChanged event.
tf8zk72w.pubclass(en-us,VS.90).gifSerialPort Represents a serial port resource.
  DelegateDescription
tf8zk72w.pubdelegate(en-us,VS.90).gifSerialDataReceivedEventHandler Represents the method that will handle the DataReceived event of a SerialPort object.
tf8zk72w.pubdelegate(en-us,VS.90).gifSerialErrorReceivedEventHandler Represents the method that will handle the ErrorReceived event of a SerialPort object.
tf8zk72w.pubdelegate(en-us,VS.90).gifSerialPinChangedEventHandler Represents the method that will handle the PinChanged event of a SerialPort object.
  EnumerationDescription
tf8zk72w.pubenumeration(en-us,VS.90).gifHandshake Specifies the control protocol used in establishing a serial port communication for a SerialPort object.
tf8zk72w.pubenumeration(en-us,VS.90).gifParity Specifies the parity bit for a SerialPort object.
tf8zk72w.pubenumeration(en-us,VS.90).gifSerialData Specifies the type of character that was received on the serial port of the SerialPort object.
tf8zk72w.pubenumeration(en-us,VS.90).gifSerialError Specifies errors that occur on the SerialPort object
tf8zk72w.pubenumeration(en-us,VS.90).gifSerialPinChange Specifies the type of change that occurred on the SerialPort object.
tf8zk72w.pubenumeration(en-us,VS.90).gifStopBits Specifies the number of stop bits used on the SerialPort object.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker