SerialPort.ReceivedBytesThreshold 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 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為何,也會引發事件。