Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlObjectSerializer::WriteStartObject Method

 

Writes only the starting XML element to an XML document or stream.

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

NameDescription
System_CAPS_pubmethodWriteStartObject(XmlDictionaryWriter^, Object^)

Writes the start of the object's data as an opening XML element using the specified XmlDictionaryWriter.

System_CAPS_pubmethodWriteStartObject(XmlWriter^, Object^)

Writes the start of the object's data as an opening XML element using the specified 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. 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.

Return to top
Show:
© 2017 Microsoft