ReadObject Method

XmlObjectSerializer.ReadObject Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Reads an XML document or document 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.

  NameDescription
Public method ReadObject(Stream) Reads the XML stream or document with a Stream and returns the deserialized object.
Public method ReadObject(XmlDictionaryReader) Reads the XML document or stream with an XmlDictionaryReader and returns the deserialized object.
Public method ReadObject(XmlReader) Reads the XML document or stream with an XmlReader and returns the deserialized object.
Public method ReadObject(XmlDictionaryReader, Boolean) When implemented in a derived class, reads the XML stream or document with an XmlDictionaryReader and returns the deserialized object.
Public method ReadObject(XmlReader, Boolean) Reads the XML document or stream with an XmlReader and returns the deserialized object. It also enables you to specify whether the serializer can read the data before attempting to read it.
Top

Show:
© 2017 Microsoft