Export (0) Print
Expand All

SerialPort.WriteBufferSize Property

Gets or sets the size of the serial port output buffer.

Namespace: System.IO.Ports
Assembly: System (in system.dll)

public int WriteBufferSize { get; set; }
/** @property */
public int get_WriteBufferSize ()

/** @property */
public void set_WriteBufferSize (int value)

public function get WriteBufferSize () : int

public function set WriteBufferSize (value : int)

Not applicable.

Property Value

The size of the output buffer. The default is 2048.

Exception typeCondition

ArgumentOutOfRangeException

The WriteBufferSize value is less than or equal to zero.

InvalidOperationException

The WriteBufferSize property was set while the stream was open.

IOException

The WriteBufferSize property was set to an odd integer value.

The WriteBufferSize property ignores any value smaller than 2048.

Windows Mobile 2003 for Pocket PC, Windows Mobile 2003 for Smartphone, Windows CE Platform Note: On Windows CE, the buffer sizes passed are only recommendations, not requirements of the serial driver. The serial driver may ignore the recommended buffer sizes.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

.NET Compact Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft