PipeStream.WaitForPipeDrain 方法

定义

等待管道另一端读取所有发送的字节。Waits for the other end of the pipe to read all sent bytes.

public:
 void WaitForPipeDrain();
[System.Security.SecurityCritical]
public void WaitForPipeDrain ();
member this.WaitForPipeDrain : unit -> unit
Public Sub WaitForPipeDrain ()
属性

异常

管道已关闭。The pipe is closed.

管道不支持写入操作。The pipe does not support write operations.

管道已损坏或出现其他 I/O 错误。The pipe is broken or another I/O error occurred.

注解

在管道的另一端读取所有发送的字节之前,WaitForPipeDrain 方法将被阻止。The WaitForPipeDrain method blocks until the other end of the pipe has read all sent bytes.

适用于