Редагувати

Поділитися через


XmlSerializationReader.UnknownAttribute Method

Definition

Raises a UnknownAttribute event for the current position of the XmlReader.

Overloads

UnknownAttribute(Object, XmlAttribute)

This API supports the product infrastructure and is not intended to be used directly from your code.

Raises an UnknownAttribute event for the current position of the XmlReader.

UnknownAttribute(Object, XmlAttribute, String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Raises an UnknownAttribute event for the current position of the XmlReader.

UnknownAttribute(Object, XmlAttribute)

Source:
XmlSerializationReader.cs
Source:
XmlSerializationReader.cs
Source:
XmlSerializationReader.cs

Raises an UnknownAttribute event for the current position of the XmlReader.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 void UnknownAttribute(System::Object ^ o, System::Xml::XmlAttribute ^ attr);
protected void UnknownAttribute (object? o, System.Xml.XmlAttribute attr);
protected void UnknownAttribute (object o, System.Xml.XmlAttribute attr);
member this.UnknownAttribute : obj * System.Xml.XmlAttribute -> unit
Protected Sub UnknownAttribute (o As Object, attr As XmlAttribute)

Parameters

o
Object

An object that the XmlSerializer is attempting to deserialize, subsequently accessible through the ObjectBeingDeserialized property.

attr
XmlAttribute

An XmlAttribute that represents the attribute in question.

Remarks

The protected members of 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 UnknownAttribute method to handle unknown attributes while the XmlSerializer is executing its Deserialize method.

Applies to

UnknownAttribute(Object, XmlAttribute, String)

Source:
XmlSerializationReader.cs
Source:
XmlSerializationReader.cs
Source:
XmlSerializationReader.cs

Raises an UnknownAttribute event for the current position of the XmlReader.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 void UnknownAttribute(System::Object ^ o, System::Xml::XmlAttribute ^ attr, System::String ^ qnames);
protected void UnknownAttribute (object? o, System.Xml.XmlAttribute attr, string? qnames);
protected void UnknownAttribute (object o, System.Xml.XmlAttribute attr, string qnames);
member this.UnknownAttribute : obj * System.Xml.XmlAttribute * string -> unit
Protected Sub UnknownAttribute (o As Object, attr As XmlAttribute, qnames As String)

Parameters

o
Object

An object that the XmlSerializer is attempting to deserialize, subsequently accessible through the ObjectBeingDeserialized property.

attr
XmlAttribute

A XmlAttribute that represents the attribute in question.

qnames
String

A comma-delimited list of XML qualified names.

Applies to