This documentation is archived and is not being maintained.

DataContractSerializer.WriteObject Method

Writes all the object data (starting XML element, content, and closing element) to an XML document or stream.

Name Description
DataContractSerializer.WriteObject (Stream, Object) Writes the complete content (start, content, and end) of the object to the XML document or stream with the specified Stream.
DataContractSerializer.WriteObject (XmlDictionaryWriter, Object) Writes the complete content (start, content, and end) of the object to the XML document or stream with the specified XmlDictionaryWriter.
DataContractSerializer.WriteObject (XmlWriter, Object) Writes all the object data (starting XML element, content, and closing element) to an XML document or stream with an XmlWriter.
Show: