System.Xml.XmlReader.ReadContentAsObjectAsync Method

Asynchronously reads the text content at the current position as an object.

Syntax

public virtual System.Threading.Tasks.Task<object> ReadContentAsObjectAsync ()

Returns

The text content as the most appropriate common language runtime (CLR) object.

Remarks

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