public enum class SerialData
public enum SerialData
type SerialData =
Public Enum SerialData
|Chars Chars Chars Chars||1||
接收到了一个字符并将其放入了输入缓冲区。A character was received and placed in the input buffer.
|Eof Eof Eof 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