System.IO.Ports.SerialPort.ReadBufferSize Property

Gets or sets the size of the System.IO.Ports.SerialPort input buffer.

Syntax

[System.ComponentModel.Browsable(true)]
[System.ComponentModel.DefaultValue(4096)]
[System.Diagnostics.MonitoringDescription("")]
public int ReadBufferSize { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The SerialPort.ReadBufferSize property ignores any value smaller than 4096.

Because the SerialPort.ReadBufferSize property represents only the Windows-created buffer, it can return a smaller value than the SerialPort.BytesToRead property, which represents both the System.IO.Ports.SerialPort buffer and the Windows-created buffer.

Requirements

Namespace: System.IO.Ports
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0