System.Xml.Serialization.XmlSerializationReader.UnknownAttribute Method

Raises an XmlSerializer.UnknownAttribute event for the current position of the System.Xml.XmlReader.

Syntax

protected void UnknownAttribute (object o, System.Xml.XmlAttribute attr)

Parameters

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.

Remarks

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.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0