Share via


SerialPort.DiscardInBuffer Method

Discards data from the serial driver's receive buffer.

Namespace: System.IO.Ports
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)

Syntax

public void DiscardInBuffer ()

Remarks

This method is equivalent to the following Visual Basic 6.0 code: MSComm1.InBufferCount = 0.

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