System.IO.Ports.SerialError Enumeration

Specifies errors that occur on the System.IO.Ports.SerialPort object.

Syntax

public enum SerialError

Remarks

This enumeration can be useful when handling the SerialPort.ErrorReceived event to detect and respond to errors when communicating data through a System.IO.Ports.SerialPort. You examine the type of error by retrieving the SerialErrorReceivedEventArgs.EventType property of the System.IO.Ports.SerialErrorReceivedEventArgs class. The SerialErrorReceivedEventArgs.EventType property contains one of the values from the System.IO.Ports.SerialError enumeration.

Members

Member NameDescription
Frame

The hardware detected a framing error.

Overrun

A character-buffer overrun has occurred. The next character is lost.

RXOver

An input buffer overflow has occurred. There is either no room in the input buffer, or a character was received after the end-of-file (EOF) character.

RXParity

The hardware detected a parity error.

TXFull

The application tried to transmit a character, but the output buffer was full.

Requirements

Namespace: System.IO.Ports
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0