SerialPort.BytesToRead Property
Gets the number of bytes of data in the receive buffer.
Namespace: System.IO.Ports
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)
Syntax
public int BytesToRead { get; }
Property Value
The number of bytes of data in the receive buffer.
Remarks
The receive buffer includes the serial driver's receive buffer as well as internal buffering in the SerialPort object itself.
Note
The BytesToRead property can return a value larger than the ReadBufferSize property because the ReadBufferSize property represents only the Windows-created buffer while the BytesToRead property represents the SerialPort buffer in addition to the Windows-created buffer.
Version Information
Available in the .NET Micro Framework versions 3.0, 4.0, 4.1, and 4.2.
See Also
Reference
SerialPort Class
SerialPort Members
System.IO.Ports Namespace