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

NetDataContractSerializer.ReadObject Method (XmlReader)

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

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

abstract ReadObject : 
        reader:XmlReader -> Object  
override ReadObject : 
        reader:XmlReader -> Object

Parameters

reader
Type: System.Xml.XmlReader

The XmlReader used to read the XML stream or document.

Return Value

Type: System.Object
The deserialized object.

ExceptionCondition
ArgumentNullException

the reader is set to a null reference (Nothing in Visual Basic).

Security noteSecurity 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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft