System.Xml.XmlReader.ReadOuterXmlAsync Method

Asynchronously reads the content, including markup, representing this node and all its children.

Syntax

public virtual System.Threading.Tasks.Task<string> ReadOuterXmlAsync ()

Returns

If the reader is positioned on an element or an attribute node, this method returns all the XML content, including markup, of the current node and all its children; otherwise, it returns an empty string.

Remarks

This is the asynchronous version of XmlReader.ReadOuterXml, with the same functionality. To use this method, you must set the XmlReaderSettings.Async flag to true.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 4.0.0.0