Raises an XmlSerializer.UnreferencedObject event for the current position of the System.Xml.XmlReader.
- id
- A unique string that is used to identify the unreferenced object, subsequently accessible through the UnreferencedObjectEventArgs.UnreferencedId property.
- o
- An object that the System.Xml.Serialization.XmlSerializer is attempting to deserialize, subsequently accessible through the UnreferencedObjectEventArgs.UnreferencedObject property.
The protected members of System.Xml.Serialization.XmlSerializationReader are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.
SOAP encoding, as specified in Section 5 of the SOAP 1.1 specification, allows for elements referenced multiple times in a SOAP message (or optionally, just once) to be referred by an href attribute in the main message. An XmlSerializer.UnreferencedObject event occurs when such an element appears, but there is no href reference to it.
Add a handler method to XmlSerializer.UnreferencedObject to provide custom handling for unreferenced objects while the System.Xml.Serialization.XmlSerializer executes its erload:System.Xml.Serialization.XmlSerializer.Deserialize method.