Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DataContractSerializer.ReadObject Method

Reads the XML stream and returns the deserialized object.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Supported by Portable Class Library ReadObject(Stream) Reads the XML stream or document with a Stream and returns the deserialized object. (Inherited from XmlObjectSerializer.)
Public method Supported by Portable Class Library ReadObject(XmlDictionaryReader) Reads the XML document or stream with an XmlDictionaryReader and returns the deserialized object. (Inherited from XmlObjectSerializer.)
Public method Supported by Portable Class Library ReadObject(XmlReader) Reads the XML stream with an XmlReader and returns the deserialized object. (Overrides XmlObjectSerializer.ReadObject(XmlReader).)
Public method Supported by Portable Class Library ReadObject(XmlDictionaryReader, Boolean) Reads the XML stream with an XmlDictionaryReader and returns the deserialized object, and also specifies whether a check is made to verify the object name before reading its value. (Overrides XmlObjectSerializer.ReadObject(XmlDictionaryReader, Boolean).)
Public method Supported by Portable Class Library ReadObject(XmlReader, Boolean) Reads the XML stream with an XmlReader and returns the deserialized object, and also specifies whether a check is made to verify the object name before reading its value. (Overrides XmlObjectSerializer.ReadObject(XmlReader, Boolean).)
Public method ReadObject(XmlDictionaryReader, Boolean, DataContractResolver) Reads an XML document or document stream and returns the deserialized object. The method includes a parameter to specify whether the object name is verified is validated, and a resolver for mapping xsi:type declarations at runtime.
Top
Show:
© 2015 Microsoft