Export (0) Print
Expand All

NetDataContractSerializer.WriteObject Method

Writes the complete content (start, content, and end) of the object to the XML document or stream with the specified writer.

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 WriteObject(XmlWriter, Object) Writes the complete content (start, content, and end) of the object to the XML document or stream with the specified XmlWriter. (Overrides XmlObjectSerializer.WriteObject(XmlWriter, Object).)
Public method WriteObject(Stream, Object) Writes the complete content (start, content, and end) of the object to the XML document or stream with the specified Stream. (Inherited from XmlObjectSerializer.)
Public method WriteObject(XmlDictionaryWriter, Object) Writes the complete content (start, content, and end) of the object to the XML document or stream with the specified XmlDictionaryWriter. (Inherited from XmlObjectSerializer.)
Top

The WriteStartObject, WriteObjectContent, and WriteEndObject methods are used in succession to write the complete serialization using the pattern: write start, write content, and write end. The three methods are also called by the WriteObject method.

Community Additions

ADD
Show:
© 2014 Microsoft