SerialData 枚举

定义

指定在 SerialPort 对象的串行端口上收到的字符的类型。Specifies the type of character that was received on the serial port of the SerialPort object.

public enum class SerialData
public enum SerialData
type SerialData = 
Public Enum SerialData
继承
SerialData

字段

Chars 1

接收到了一个字符并将其放入了输入缓冲区。A character was received and placed in the input buffer.

Eof 2

接收到了文件结束字符并将其放入了输入缓冲区。The end of file character was received and placed in the input buffer.

注解

此枚举与SerialPort.DataReceived事件一起使用。This enumeration is used with the SerialPort.DataReceived event. 可以通过检索SerialDataReceivedEventArgs.EventType属性的值来检查收到的字符的类型。You examine the type of character that was received by retrieving the value of the SerialDataReceivedEventArgs.EventType property. 属性包含SerialData枚举中的一个值。 EventTypeThe EventType property contains one of the values from the SerialData enumeration.

适用于