System.Xml.XmlReader.ReadAsync Method

Asynchronously reads the next node from the stream.

Syntax

public virtual System.Threading.Tasks.Task<bool> ReadAsync ()

Returns

true if the next node was read successfully; false if there are no more nodes to read.

Remarks

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