Поделиться через


XmlObjectSerializer.WriteStartObject 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 only the starting XML element to an XML document or stream.

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
Public methodSupported by Silverlight for Windows Phone WriteStartObject(XmlDictionaryWriter, Object) Writes the start of the object's data as an opening XML element using the specified XmlDictionaryWriter.
Public methodSupported by Silverlight for Windows Phone WriteStartObject(XmlWriter, Object) Writes the start of the object's data as an opening XML element using the specified 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. If the implementation writes using XML elements, attributes can be inserted before writing the contents of the object. The three methods are also called by the virtual implementation of the WriteObject method.