Export (0) Print
Expand All

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()
[C#]
public abstract void WriteEndDocument();
[C++]
public: virtual void WriteEndDocument() = 0;
[JScript]
public abstract function WriteEndDocument();

Exceptions

Exception Type Condition
ArgumentException The XML document is invalid.

Example

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

Requirements

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

Show:
© 2014 Microsoft