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

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
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
SerialPort Members

Represents a serial port resource.

The SerialPort type exposes the following members.

  NameDescription
Public methodSupported by the .NET Compact FrameworkSerialPortOverloaded. Initializes a new instance of the SerialPort class.
Top
  NameDescription
Public methodSupported by the .NET Compact FrameworkClose Closes the port connection, sets the IsOpen property to false, and disposes of the internal Stream object.
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodSupported by the .NET Compact FrameworkDiscardInBuffer Discards data from the serial driver's receive buffer.
Public methodSupported by the .NET Compact FrameworkDiscardOutBuffer Discards data from the serial driver's transmit buffer.
Public methodSupported by the .NET Compact FrameworkDisposeOverloaded. Releases the unmanaged resources used by the SerialPort object.
Public methodSupported by the .NET Compact FrameworkEquals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkFinalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public methodSupported by the .NET Compact FrameworkGetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodStatic memberSupported by the .NET Compact FrameworkGetPortNames Gets an array of serial port names for the current computer.
Protected methodGetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public methodSupported by the .NET Compact FrameworkGetType Gets the Type of the current instance. (Inherited from Object.)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodSupported by the .NET Compact FrameworkMemberwiseCloneOverloaded.
Public methodSupported by the .NET Compact FrameworkOpen Opens a new serial port connection.
Public methodSupported by the .NET Compact FrameworkReadOverloaded. Reads from the SerialPort input buffer.
Public methodSupported by the .NET Compact FrameworkReadByte Synchronously reads one byte from the SerialPort input buffer.
Public methodSupported by the .NET Compact FrameworkReadChar Synchronously reads one character from the SerialPort input buffer.
Public methodSupported by the .NET Compact FrameworkReadExisting Reads all immediately available bytes, based on the encoding, in both the stream and the input buffer of the SerialPort object.
Public methodSupported by the .NET Compact FrameworkReadLine Reads up to the NewLine value in the input buffer.
Public methodSupported by the .NET Compact FrameworkReadTo Reads a string up to the specified value in the input buffer.
Public methodSupported by the .NET Compact FrameworkToStringOverloaded.
Public methodSupported by the .NET Compact FrameworkWriteOverloaded. Writes data to the serial port output buffer.
Public methodSupported by the .NET Compact FrameworkWriteLine Writes the specified string and the NewLine value to the output buffer.
Top
  NameDescription
Public fieldStatic memberSupported by the .NET Compact FrameworkInfiniteTimeout Indicates that no time-out should occur.
Top
  NameDescription
Public propertySupported by the .NET Compact FrameworkBaseStream Gets the underlying Stream object for a SerialPort object.
Public propertySupported by the .NET Compact FrameworkBaudRate Gets or sets the serial baud rate.
Public propertySupported by the .NET Compact FrameworkBreakState Gets or sets the break signal state.
Public propertySupported by the .NET Compact FrameworkBytesToRead Gets the number of bytes of data in the receive buffer.
Public propertySupported by the .NET Compact FrameworkBytesToWrite Gets the number of bytes of data in the send buffer.
Protected propertyCanRaiseEvents Gets a value indicating whether the component can raise an event. (Inherited from Component.)
Public propertySupported by the .NET Compact FrameworkCDHolding Gets the state of the Carrier Detect line for the port.
Public propertyContainer Gets the IContainer that contains the Component. (Inherited from Component.)
Public propertySupported by the .NET Compact FrameworkCtsHolding Gets the state of the Clear-to-Send line.
Public propertySupported by the .NET Compact FrameworkDataBits Gets or sets the standard length of data bits per byte.
Protected propertyDesignMode Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Public propertySupported by the .NET Compact FrameworkDiscardNull Gets or sets a value indicating whether null bytes are ignored when transmitted between the port and the receive buffer.
Public propertySupported by the .NET Compact FrameworkDsrHolding Gets the state of the Data Set Ready (DSR) signal.
Public propertySupported by the .NET Compact FrameworkDtrEnable Gets or sets a value that enables the Data Terminal Ready (DTR) signal during serial communication.
Public propertySupported by the .NET Compact FrameworkEncoding Gets or sets the byte encoding for pre- and post-transmission conversion of text.
Protected propertySupported by the .NET Compact FrameworkEvents Gets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public propertySupported by the .NET Compact FrameworkHandshake Gets or sets the handshaking protocol for serial port transmission of data.
Public propertySupported by the .NET Compact FrameworkIsOpen Gets a value indicating the open or closed status of the SerialPort object.
Public propertySupported by the .NET Compact FrameworkNewLine Gets or sets the value used to interpret the end of a call to the ReadLine and WriteLine methods.
Public propertySupported by the .NET Compact FrameworkParity Gets or sets the parity-checking protocol.
Public propertySupported by the .NET Compact FrameworkParityReplace Gets or sets the byte that replaces invalid bytes in a data stream when a parity error occurs.
Public propertySupported by the .NET Compact FrameworkPortName Gets or sets the port for communications, including but not limited to all available COM ports.
Public propertySupported by the .NET Compact FrameworkReadBufferSize Gets or sets the size of the SerialPort input buffer.
Public propertySupported by the .NET Compact FrameworkReadTimeout Gets or sets the number of milliseconds before a time-out occurs when a read operation does not finish.
Public propertySupported by the .NET Compact FrameworkReceivedBytesThreshold Gets or sets the number of bytes in the internal input buffer before a DataReceived event occurs.
Public propertySupported by the .NET Compact FrameworkRtsEnable Gets or sets a value indicating whether the Request to Send (RTS) signal is enabled during serial communication.
Public propertySupported by the .NET Compact FrameworkSite Gets or sets the ISite of the Component. (Inherited from Component.)
Public propertySupported by the .NET Compact FrameworkStopBits Gets or sets the standard number of stopbits per byte.
Public propertySupported by the .NET Compact FrameworkWriteBufferSize Gets or sets the size of the serial port output buffer.
Public propertySupported by the .NET Compact FrameworkWriteTimeout Gets or sets the number of milliseconds before a time-out occurs when a write operation does not finish.
Top
  NameDescription
Public eventSupported by the .NET Compact FrameworkDataReceived Represents the method that will handle the data received event of a SerialPort object.
Public eventSupported by the .NET Compact FrameworkDisposed Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Public eventSupported by the .NET Compact FrameworkErrorReceived Represents the method that handles the error event of a SerialPort object.
Public eventSupported by the .NET Compact FrameworkPinChanged Represents the method that will handle the serial pin changed event of a SerialPort object.
Top
Tags What's this?: 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