System.IO.Ports.SerialData Enumeration

Specifies the type of character that was received on the serial port of the System.IO.Ports.SerialPort object.

Syntax

public enum SerialData

Remarks

This enumeration is used with the SerialPort.DataReceived event. You examine the type of character that was received by retrieving the value of the SerialDataReceivedEventArgs.EventType property of the System.IO.Ports.SerialDataReceivedEventArgs class. The SerialDataReceivedEventArgs.EventType property contains one of the values from the System.IO.Ports.SerialData enumeration.

Members

Member NameDescription
Chars

A character was received and placed in the input buffer.

Eof

The end of file character was received and placed in the input buffer.

Requirements

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