System.Xml.XmlWriter.WriteNodeAsync Method

Asynchronously copies everything from the reader to the writer and moves the reader to the start of the next sibling.

Syntax

public virtual System.Threading.Tasks.Task WriteNodeAsync (XmlReader reader, bool defattr)

Parameters

reader
The System.Xml.XmlReader to read from.
defattr
true to copy the default attributes from the XmlReader; otherwise, false.

Returns

The task that represents the asynchronous WriteNode operation.

Remarks

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