System.Xml.XmlWriter.WriteStartDocumentAsync Method

Asynchronously writes the XML declaration with the version "1.0" and the standalone attribute.

Syntax

public virtual System.Threading.Tasks.Task WriteStartDocumentAsync (bool standalone)

Parameters

standalone
If true, it writes "standalone=yes"; if false, it writes "standalone=no".

Returns

The task that represents the asynchronous WriteStartDocument operation.

Remarks

This is the asynchronous version of XmlWriter.WriteStartDocument(bool), 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