System.Xml.XmlWriter.WriteNameAsync Method

Asynchronously writes out the specified name, ensuring it is a valid name according to the W3C XML 1.0 recommendation (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name).

Syntax

public virtual System.Threading.Tasks.Task WriteNameAsync (string name)

Parameters

name
The name to write.

Returns

The task that represents the asynchronous WriteName operation.

Remarks

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