Export (0) Print
Expand All

XmlObjectSerializer.WriteEndObject Method

Writes the closing XML element to an XML stream or document.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method WriteEndObject(XmlDictionaryWriter) Writes the end of the object data as a closing XML element to the XML document or stream with an XmlDictionaryWriter.
Public method WriteEndObject(XmlWriter) Writes the end of the object data as a closing XML element to the XML document or stream with an XmlWriter.
Top

The WriteStartObject, WriteObjectContent, and WriteEndObject methods must be implemented. The three methods are used in succession to write the complete serialization using the pattern: write start, write content, and write end. Users can insert XML attributes during the writing of the object between the calls to WriteStartObject and WriteEndObject. The three methods are also called by the virtual implementation of the WriteObject method.

Community Additions

ADD
Show:
© 2014 Microsoft