Raises an XmlSerializer.UnknownAttribute event for the current position of the System.Xml.XmlReader.
- o
- An object that the System.Xml.Serialization.XmlSerializer is attempting to deserialize, subsequently accessible through the XmlAttributeEventArgs.ObjectBeingDeserialized property.
- attr
- An System.Xml.XmlAttribute that represents the attribute in question.
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.
Add a handler method to the XmlSerializationReader.UnknownAttribute(object, System.Xml.XmlAttribute) method to handle unknown attributes while the System.Xml.Serialization.XmlSerializer is executing its erload:System.Xml.Serialization.XmlSerializer.Deserialize method.