SerialData Enumeration

SerialData Enumeration

 

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

Namespace:   System.IO.Ports
Assembly:  System (in System.dll)

public enum SerialData

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.

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

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft