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::WaitForPipeDrain Method ()

 

Waits for the other end of the pipe to read all sent bytes.

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

public:
[SecurityCriticalAttribute]
void WaitForPipeDrain()

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 WaitForPipeDrain method blocks until the other end of the pipe has read all sent bytes.

.NET Framework
Available since 3.5
Return to top
Show:
© 2017 Microsoft