WriteEndDocument Method
Collapse the table of content
Expand the table of content

XmlWriter.WriteEndDocument Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public abstract void WriteEndDocument()

ExceptionCondition
ArgumentException

The XML document is invalid.

NoteNote:

When you use the XmlWriter methods to output XML, the elements and attributes will not be written until you call the Close method.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft