Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5

  Switch on low bandwidth view
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

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 classSerialDataReceivedEventArgs Provides data for the DataReceived event.
Public classSerialErrorReceivedEventArgs Prepares data for the ErrorReceived event.
Public classSerialPinChangedEventArgs Provides data for the PinChanged event.
Public classSerialPort Represents a serial port resource.
  DelegateDescription
Public delegateSerialDataReceivedEventHandler Represents the method that will handle the DataReceived event of a SerialPort object.
Public delegateSerialErrorReceivedEventHandler Represents the method that will handle the ErrorReceived event of a SerialPort object.
Public delegateSerialPinChangedEventHandler Represents the method that will handle the PinChanged event of a SerialPort object.
  EnumerationDescription
Public enumerationHandshake Specifies the control protocol used in establishing a serial port communication for a SerialPort object.
Public enumerationParity Specifies the parity bit for a SerialPort object.
Public enumerationSerialData Specifies the type of character that was received on the serial port of the SerialPort object.
Public enumerationSerialError Specifies errors that occur on the SerialPort object
Public enumerationSerialPinChange Specifies the type of change that occurred on the SerialPort object.
Public enumerationStopBits Specifies the number of stop bits used on the SerialPort object.
Tags What's this?: comm (x) port (x) serial (x) Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker