System.Xml.XmlReader.ReadElementContentAsStringAsync Method

Asynchronously reads the current element and returns the contents as a string object.

Syntax

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

Returns

The element content as a string object.

Remarks

This is the asynchronous version of XmlReader.ReadElementContentAsString, 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