System.Xml.XmlWriter.WriteElementStringAsync Method

Asynchronously writes an element with the specified prefix, local name, namespace URI, and value.

Syntax

public System.Threading.Tasks.Task WriteElementStringAsync (string prefix, string localName, string ns, string value)

Parameters

prefix
The prefix of the element.
localName
The local name of the element.
ns
The namespace URI of the element.
value
The value of the element.

Returns

The task that represents the asynchronous WriteElementString operation.

Remarks

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