Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SerialPort::WriteBufferSize Property

 

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

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

public:
[BrowsableAttribute(true)]
property int WriteBufferSize {
	int get();
	void set(int value);
}

Property Value

Type: System::Int32

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

Exception Condition
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.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft