System.Xml.Serialization.XmlSerializer.Deserialize Method

Deserializes the object using the data contained by the specified System.Xml.XmlReader.

Syntax

public object Deserialize (System.Xml.XmlReader xmlReader, string encodingStyle, XmlDeserializationEvents events)

Parameters

xmlReader
An instance of the System.Xml.XmlReader class used to read the document.
encodingStyle
The encoding used.
events
An instance of the System.Xml.Serialization.XmlDeserializationEvents class.

Returns

The object being deserialized.

Remarks

This method is required for deserialization of unknown headers for Web Service scenarios only. This method allows you to avoid event synchronization in Web Service methods.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0