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

SerialPort Methods

The SerialPort type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Close Closes the port connection, sets the IsOpen property to false, and disposes of the internal Stream object.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Supported by the .NET Compact Framework DiscardInBuffer Discards data from the serial driver's receive buffer.
Public method Supported by the .NET Compact Framework DiscardOutBuffer Discards data from the serial driver's transmit buffer.
Public method Supported by the .NET Compact Framework Dispose Overloaded. Releases the unmanaged resources used by the SerialPort object.
Public method Supported by the .NET Compact Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public method Supported by the .NET Compact Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Static member Supported by the .NET Compact Framework GetPortNames Gets an array of serial port names for the current computer.
Protected method GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Public method Supported by the .NET Compact Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method Supported by the .NET Compact Framework MemberwiseClone Overloaded.
Public method Supported by the .NET Compact Framework Open Opens a new serial port connection.
Public method Supported by the .NET Compact Framework Read Overloaded. Reads from the SerialPort input buffer.
Public method Supported by the .NET Compact Framework ReadByte Synchronously reads one byte from the SerialPort input buffer.
Public method Supported by the .NET Compact Framework ReadChar Synchronously reads one character from the SerialPort input buffer.
Public method Supported by the .NET Compact Framework ReadExisting Reads all immediately available bytes, based on the encoding, in both the stream and the input buffer of the SerialPort object.
Public method Supported by the .NET Compact Framework ReadLine Reads up to the NewLine value in the input buffer.
Public method Supported by the .NET Compact Framework ReadTo Reads a string up to the specified value in the input buffer.
Public method Supported by the .NET Compact Framework ToString Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)

In .NET Compact Framework 3.5, this member is inherited from Object.ToString().
Public method Supported by the .NET Compact Framework Write Overloaded. Writes data to the serial port output buffer.
Public method Supported by the .NET Compact Framework WriteLine Writes the specified string and the NewLine value to the output buffer.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.