The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
XmlWriter::WriteNodeAsync Method (XPathNavigator^, Boolean)
.NET Framework (current version)
Asynchronously copies everything from the XPathNavigator object to the writer. The position of the XPathNavigator remains unchanged.
Assembly: System.Xml (in System.Xml.dll)
Parameters
- navigator
-
Type:
System.Xml.XPath::XPathNavigator^
The XPathNavigator to copy from.
- defattr
-
Type:
System::Boolean
true to copy the default attributes; otherwise, false.
Return Value
Type: System.Threading.Tasks::Task^The task that represents the asynchronous WriteNode operation.
| Exception | Condition |
|---|---|
| InvalidOperationException | An XmlWriter method was called before a previous asynchronous operation finished. In this case, InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.” |
| InvalidOperationException | An XmlWriter asynchronous method was called without setting the Async flag to true. In this case, InvalidOperationException is thrown with the message “Set XmlWriterSettings.Async to true if you want to use Async Methods.” |
.NET Framework
Available since 4.5
Available since 4.5
Show: