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

會接收檔案結尾 (EOF) 字元並放到輸入緩衝區。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.

適用於