System.Xml.XmlWriter.WriteStartElementAsync Method

Asynchronously writes the specified start tag and associates it with the given namespace and prefix.

Syntax

public virtual System.Threading.Tasks.Task WriteStartElementAsync (string prefix, string localName, string ns)

Parameters

prefix
The namespace prefix of the element.
localName
The local name of the element.
ns
The namespace URI to associate with the element.

Returns

The task that represents the asynchronous WriteStartElement operation.

Remarks

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