SerialPort.ReceivedBytesThreshold 屬性

定義

取得或設定 DataReceived 事件發生之前,內部輸入緩衝區中的位元組數。

public:
 property int ReceivedBytesThreshold { int get(); void set(int value); };
public int ReceivedBytesThreshold { get; set; }
[System.ComponentModel.Browsable(true)]
public int ReceivedBytesThreshold { get; set; }
member this.ReceivedBytesThreshold : int with get, set
[<System.ComponentModel.Browsable(true)>]
member this.ReceivedBytesThreshold : int with get, set
Public Property ReceivedBytesThreshold As Integer

屬性值

DataReceived 事件引發之前,內部輸入緩衝區中的位元組數。 預設值是 1。

屬性

例外狀況

備註

DataReceived如果收到字元,則也會 Eof 引發 事件,而不論內部輸入緩衝區中的位元組數目和 屬性的值 ReceivedBytesThreshold 為何。

適用於