Click or drag to resize
SerialPort Class
Mono implementation of SerialPort is incomplete. This is to make up for that.
Inheritance Hierarchy
SystemObject
  SerialPortNETSerialPort

Namespace: SerialPortNET
Assembly: SerialPortNET (in SerialPortNET.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class SerialPort : ISerialPort, IDisposable

The SerialPort type exposes the following members.

Constructors
  NameDescription
Public methodSerialPort
Creates a new Serial Port
Top
Properties
  NameDescription
Public propertyBaudRate
Gets or sets the serial baud rate.
Public propertyBytesToRead
Gets the number of bytes of data in the receive buffer.
Public propertyBytesToWrite
Gets the number of bytes of data in the send buffer.
Public propertyDataBits
Gets or sets the standard length of data bits per byte.
Public propertyDtrControl
Gets or sets a value that enables the Data Terminal Ready (DTR) signal during serial communication.
Public propertyIsOpen
Gets a value indicating the open or closed status of the SerialPort object.
Public propertyIsRunning
Gets a value indicating the running status of the SerialPort object.
Public propertyParity
Gets or sets the parity-checking protocol.
Public propertyPortName
Gets or sets the port for communications, including but not limited to all available COM ports.
Public propertyReceivedBytesThreshold
Gets or sets the number of bytes in the internal input buffer before a DataReceived event occurs.
Public propertyStopBits
Gets or sets the standard number of stop bits per byte.
Top
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
Events
  NameDescription
Public eventDataReceived
If RunAsync() is called, this event is raised when new data is available in the input buffer of the serial port.
Top
See Also