System.Xml.XmlReader.ReadElementContentAsObjectAsync Method

Asynchronously reads the current element and returns the contents as an object.

Syntax

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

Returns

A boxed common language runtime (CLR) object of the most appropriate type. The XmlReader.ValueType property determines the appropriate CLR type. If the content is typed as a list type, this method returns an array of boxed objects of the appropriate type.

Remarks

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