System.Xml.XmlWriter.WriteCommentAsync Method

Asynchronously writes out a comment <!--...--> containing the specified text.

Syntax

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

Parameters

text
Text to place inside the comment.

Returns

The task that represents the asynchronous WriteComment operation.

Remarks

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