SerialPort.BytesToWrite 属性

定义

获取发送缓冲区中数据的字节数。

public:
 property int BytesToWrite { int get(); };
public int BytesToWrite { get; }
[System.ComponentModel.Browsable(false)]
public int BytesToWrite { get; }
member this.BytesToWrite : int
[<System.ComponentModel.Browsable(false)>]
member this.BytesToWrite : int
Public ReadOnly Property BytesToWrite As Integer

属性值

Int32

发送缓冲区中数据的字节数。

属性

例外

此端口处于无效状态。

流已关闭。 这可能会因为尚未调用 Open() 方法或已调用了 Close() 方法而发生。

注解

发送缓冲区包括串行驱动程序的发送缓冲区以及对象本身的内部 SerialPort 缓冲。

适用于