Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

public:
[SecurityCriticalAttribute]
virtual void Flush() override

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:
© 2017 Microsoft