共用方式為


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為何,也會引發事件。

適用於