System.IO.Stream.FlushAsync Method

Asynchronously clears all buffers for this stream and causes any buffered data to be written to the underlying device.

Syntax

public System.Threading.Tasks.Task FlushAsync ()

Returns

A task that represents the asynchronous flush operation.

Remarks

If a derived class, such as System.IO.Compression.DeflateStream or System.IO.Compression.GZipStream, does not flush the buffer in its implementation of the Stream.Flush method, the Stream.FlushAsync method will not flush the buffer.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0