Asynchronously copies everything from the reader to the writer and moves the reader to the start of the next sibling.
- reader
The System.Xml.XmlReader to read from.
- defattr
true to copy the default attributes from the XmlReader; otherwise, false.
![]()
The task that represents the asynchronous WriteNode operation.
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.