System.Xml.XmlReader.ReadContentAsStringAsync Method

Asynchronously reads the text content at the current position as a string object.

Syntax

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

Returns

The text content as a string object.

Remarks

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