Click or drag to resize
SerialPort Methods

The SerialPort type exposes the following members.

Methods
  NameDescription
Public methodClose
Closes this serial port instance
Public methodDispose
Called when this object is disposed
Protected methodDispose(Boolean)
Gets called when this instance is disposed.
Public methodStatic memberEnumerateSerialPorts
Enumerate all the serial ports and their respected device name by accessing the registry.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnDataReceived
If RunAsync() is called, this method is called when new data is available in the input buffer of the serial port.
Public methodOpen
Opens the port.
Public methodRead
Reads a number of bytes from the SerialPort input buffer and writes those bytes into a byte array at the specified offset.
Public methodReadAll
Reads all bytes from the SerialPort input buffer.
Public methodRunAsync
Run asynchronous operation.
Public methodStopAsync
Stop the asynchronous operation.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWrite
Writes a specified number of bytes to the serial port using data from a buffer.
Public methodWriteAll
Writes all bytes to the serial port.
Top
See Also