Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ReadObject Method (XmlReader)

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)

public:
virtual Object^ ReadObject(
	XmlReader^ reader
) override

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 nullptr.

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