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::Dispose Method
.NET Framework (current version)
Releases the resources used by the XmlWriter class.
Assembly: System.Xml (in System.Xml.dll)
| Name | Description | |
|---|---|---|
![]() | Dispose() | Releases all resources used by the current instance of the XmlWriter class. |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the XmlWriter and optionally releases the managed resources. |
| 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.” |
Show:

