ReadObject Method (XmlDictionaryReader)

XmlObjectSerializer.ReadObject Method (XmlDictionaryReader)

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

Reads the XML document or stream with an XmlDictionaryReader and returns the deserialized object.

Namespace:  System.Runtime.Serialization
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

'Declaration
Public Overridable Function ReadObject ( _
	reader As XmlDictionaryReader _
) As Object

Parameters

reader
Type: System.Xml.XmlDictionaryReader
An XmlDictionaryReader used to read the XML document.

Return Value

Type: System.Object
The deserialized object.

This method is a virtual method and has a default implementation that creates a dictionary reader to read the underlying stream and deserialize it. The default implementation assumes the stream is text or XML.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft