System.IO.Ports.SerialPort.DiscardOutBuffer Method

Discards data from the serial driver's transmit buffer.

Syntax

public void DiscardOutBuffer ()

Remarks

This method is equivalent to the following Visual Basic code: MSComm1.OutBufferCount = 0. It clears the transmit buffer, but does not affect the receive 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