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。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈