System.Xml.XmlWriter.FlushAsync Method

Asynchronously flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.

Syntax

public virtual System.Threading.Tasks.Task FlushAsync ()

Returns

The task that represents the asynchronous Flush operation.

Remarks

This is the asynchronous version of XmlWriter.Flush, with the same functionality. To use this method, you must set the XmlWriterSettings.Async flag to true.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 4.0.0.0