BytesToRead Property
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets the number of bytes of data in the receive buffer.
Namespace: System.IO.Ports
Assembly: Microsoft.SPOT.Hardware.SerialPort (in Microsoft.SPOT.Hardware.SerialPort.dll)
Syntax
'Declaration
Public ReadOnly Property BytesToRead As Integer
public int BytesToRead { get; }
public:
property int BytesToRead {
int get ();
}
member BytesToRead : int with get
function get BytesToRead () : int
Property Value
Type: System. . :: . .Int32
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.
Because the BytesToRead property represents both the SerialPort buffer and the Windows-created buffer, it can return a greater value than the ReadBufferSize property, which represents only the Windows-created buffer.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.