Export (0) Print
Expand All

NetDataContractSerializer.ReadObject Method

Reads the XML stream or document 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 ReadObject(Stream) Reads the XML stream or document with a Stream and returns the deserialized object. (Inherited from XmlObjectSerializer.)
Public method ReadObject(XmlDictionaryReader) Reads the XML document or stream with an XmlDictionaryReader and returns the deserialized object. (Inherited from XmlObjectSerializer.)
Public method ReadObject(XmlReader) Reads the XML stream or document with an XmlDictionaryReader and returns the deserialized object. (Overrides XmlObjectSerializer.ReadObject(XmlReader).)
Public method ReadObject(XmlDictionaryReader, Boolean) Reads the XML stream or document with an XmlDictionaryReader and returns the deserialized object; also checks whether the object data conforms to the name and namespace used to create the serializer. (Overrides XmlObjectSerializer.ReadObject(XmlDictionaryReader, Boolean).)
Public method ReadObject(XmlReader, Boolean) Reads the XML stream or document with an XmlDictionaryReader and returns the deserialized object; also checks whether the object data conforms to the name and namespace used to create the serializer. (Overrides XmlObjectSerializer.ReadObject(XmlReader, Boolean).)
Top

Security note Security Note

Calling this method with untrusted data is a security risk. Call this method only with trusted data. For more information, see Untrusted Data Security Risks.

Show:
© 2014 Microsoft