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 緩衝。

適用於