TextWriter.FlushAsync 方法

定义

异步清理当前编写器的所有缓冲区,使所有缓冲数据写入基础设备。Asynchronously clears all buffers for the current writer and causes any buffered data to be written to the underlying device.

public:
 virtual System::Threading::Tasks::Task ^ FlushAsync();
[System.Runtime.InteropServices.ComVisible(false)]
public virtual System.Threading.Tasks.Task FlushAsync ();
abstract member FlushAsync : unit -> System.Threading.Tasks.Task
override this.FlushAsync : unit -> System.Threading.Tasks.Task
Public Overridable Function FlushAsync () As Task

返回

表示异步刷新操作的任务。A task that represents the asynchronous flush operation.

属性

异常

文本编写器已被释放。The text writer is disposed.

编写器正在由其前一次写操作使用。The writer is currently in use by a previous write operation.

适用于

另请参阅