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

适用于