XmlObjectSerializer.WriteEndObject Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Include Protected Members
Include Inherited Members
Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members
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.
Overload List
Name | Description | |
---|---|---|
WriteEndObject(XmlDictionaryWriter) | Writes the end of the object data as a closing XML element to the XML document or stream with an XmlDictionaryWriter. | |
WriteEndObject(XmlWriter) | Writes the end of the object data as a closing XML element to the XML document or stream with an XmlWriter. |
Top
Remarks
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.