PipeStream.Flush Method ()

 

Clears the buffer for the current stream and causes any buffered data to be written to the underlying device.

Namespace:   System.IO.Pipes
Assembly:  System.Core (in System.Core.dll)

[SecurityCriticalAttribute]
public override void Flush()

Exception Condition
ObjectDisposedException

The pipe is closed.

NotSupportedException

The pipe does not support write operations.

IOException

The pipe is broken or another I/O error occurred.

The Flush method is not supported in the PipeStream class and does nothing when it is called.

.NET Framework
Available since 3.5
Return to top
Show: