PipeStream.Flush 方法

定义

清除当前流的缓冲区,并使所有缓冲的数据都写入到基础设备。Clears the buffer for the current stream and causes any buffered data to be written to the underlying device.

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

异常

管道已关闭。The pipe is closed.

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

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

注解

Flush 方法在 PipeStream 类中不受支持,并且在调用它时不执行任何操作。The Flush method is not supported in the PipeStream class and does nothing when it is called.

适用于