TextWriter.FlushAsync TextWriter.FlushAsync TextWriter.FlushAsync TextWriter.FlushAsync Method

Definition

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

Returns

A task that represents the asynchronous flush operation.

Exceptions

The writer is currently in use by a previous write operation.

Applies to

See also