System.Xml.XmlWriter.WriteStringAsync Method

Asynchronously writes the given text content.

Syntax

public virtual System.Threading.Tasks.Task WriteStringAsync (string text)

Parameters

text
The text to write.

Returns

The task that represents the asynchronous WriteString operation.

Remarks

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