System.Xml.XmlReader.MoveToContentAsync Method

Asynchronously checks whether the current node is a content node. If the node is not a content node, the reader skips ahead to the next content node or end of file.

Syntax

public virtual System.Threading.Tasks.Task<XmlNodeType> MoveToContentAsync ()

Returns

The XmlReader.NodeType of the current node found by the method or XmlNodeType.None if the reader has reached the end of the input stream.

Remarks

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