System.Xml.XmlWriter.WriteNodeAsync Method

Asynchronously copies everything from the System.Xml.XPath.XPathNavigator object to the writer. The position of the System.Xml.XPath.XPathNavigator remains unchanged.

Syntax

public virtual System.Threading.Tasks.Task WriteNodeAsync (System.Xml.XPath.XPathNavigator navigator, bool defattr)

Parameters

navigator
The System.Xml.XPath.XPathNavigator to copy from.
defattr
true to copy the default attributes; otherwise, false.

Returns

The task that represents the asynchronous WriteNode operation.

Remarks

This is the asynchronous version of XmlWriter.WriteNode(System.Xml.XPath.XPathNavigator, bool), with the same functionality. To use this method, you must set the XmlWriterSettings.Async flag to true.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 4.0.0.0