Export (0) Print
Expand All

SerialPort Methods

(see also Protected Methods )
  Name Description
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  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
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 Supported by the .NET Compact Framework GetPortNames Gets an array of serial port names for the current computer.
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)
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 Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
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)
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

  Name Description
Protected method Supported by the .NET Compact Framework Dispose Overloaded. Overridden. Releases the unmanaged resources used by the SerialPort 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)
Protected method GetService  Returns an object that represents a service provided by the Component or by its Container. (inherited from Component)
Protected method Supported by the .NET Compact Framework MemberwiseClone  Overloaded. (inherited from MarshalByRefObject)
Top

Community Additions

ADD
Show:
© 2014 Microsoft