XmlObjectSerializer.WriteEndObject Method

 

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

Namespace:   System.Runtime.Serialization
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

NameDescription
System_CAPS_pubmethodWriteEndObject(XmlDictionaryWriter)

Writes the end of the object data as a closing XML element to the XML document or stream with an XmlDictionaryWriter.

System_CAPS_pubmethodWriteEndObject(XmlWriter)

Writes the end of the object data as a closing XML element to the XML document or stream with an XmlWriter.

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.

Return to top
Show: