SerialPort.BytesToWrite Propriedade

Definição

Obtém o número de bytes de dados no buffer de envio.Gets the number of bytes of data in the send buffer.

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

Valor da propriedade

Int32

O número de bytes de dados no buffer de envio.The number of bytes of data in the send buffer.

Atributos

Exceções

A porta está em um estado inválido.The port is in an invalid state.

O fluxo está fechado.The stream is closed. Isso pode ocorrer porque o método Open() não foi chamado ou o método Close() foi chamado.This can occur because the Open() method has not been called or the Close() method has been called.

Comentários

O buffer de envio inclui o buffer de envio do driver serial, bem como o buffer interno no SerialPort próprio objeto.The send buffer includes the serial driver's send buffer as well as internal buffering in the SerialPort object itself.

Aplica-se a