This documentation is archived and is not being maintained.

XmlWriter.WriteEndDocument Method

When overridden in a derived class, closes any open elements or attributes and puts the writer back in the Start state.

[Visual Basic]
Public MustOverride Sub WriteEndDocument()
public abstract void WriteEndDocument();
public: virtual void WriteEndDocument() = 0;
public abstract function WriteEndDocument();


Exception Type Condition
ArgumentException The XML document is invalid.


See WriteEndDocument (in the XmlTextWriter class) for an example using this method.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

XmlWriter Class | XmlWriter Members | System.Xml Namespace