| SerialPort Methods |
The SerialPort type exposes the following members.
| Name | Description | |
|---|---|---|
| Close |
Closes this serial port instance
| |
| Dispose |
Called when this object is disposed
| |
| Dispose(Boolean) |
Gets called when this instance is disposed.
| |
| EnumerateSerialPorts |
Enumerate all the serial ports and their respected device name by accessing the registry.
| |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| OnDataReceived |
If RunAsync() is called, this method is called when new data is available in the input buffer of the serial port.
| |
| Open |
Opens the port.
| |
| Read |
Reads a number of bytes from the SerialPort input buffer and writes those bytes into a byte array at the specified offset.
| |
| ReadAll |
Reads all bytes from the SerialPort input buffer.
| |
| RunAsync |
Run asynchronous operation.
| |
| StopAsync |
Stop the asynchronous operation.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| Write |
Writes a specified number of bytes to the serial port using data from a buffer.
| |
| WriteAll |
Writes all bytes to the serial port.
|