Share via


SerialPort.WriteBufferSize Vlastnost

Definice

Získá nebo nastaví velikost vyrovnávací paměti výstupu sériového portu.

public:
 property int WriteBufferSize { int get(); void set(int value); };
public int WriteBufferSize { get; set; }
[System.ComponentModel.Browsable(true)]
public int WriteBufferSize { get; set; }
member this.WriteBufferSize : int with get, set
[<System.ComponentModel.Browsable(true)>]
member this.WriteBufferSize : int with get, set
Public Property WriteBufferSize As Integer

Hodnota vlastnosti

Velikost výstupní vyrovnávací paměti. Výchozí hodnota je 2048.

Atributy

Výjimky

Hodnota WriteBufferSize je menší nebo rovna nule.

Vlastnost WriteBufferSize byla nastavena v době, kdy byl datový proud otevřený.

Vlastnost WriteBufferSize byla nastavena na lichou celočíselnou hodnotu.

Poznámky

Vlastnost WriteBufferSize ignoruje jakoukoli hodnotu menší než 2048.

Platí pro