XmlSerializationReader.UnknownAttribute 方法

定义

UnknownAttribute 的当前位置引发 XmlReader 事件。Raises a UnknownAttribute event for the current position of the XmlReader.

重载

UnknownAttribute(Object, XmlAttribute)

此 API 支持产品基础结构,不能在代码中直接使用。

UnknownAttribute 的当前位置引发 XmlReader 事件。Raises an UnknownAttribute event for the current position of the XmlReader.

UnknownAttribute(Object, XmlAttribute, String)

此 API 支持产品基础结构,不能在代码中直接使用。

UnknownAttribute 的当前位置引发 XmlReader 事件。Raises an UnknownAttribute event for the current position of the XmlReader.

UnknownAttribute(Object, XmlAttribute)

UnknownAttribute 的当前位置引发 XmlReader 事件。Raises an UnknownAttribute event for the current position of the XmlReader.

此 API 支持产品基础结构,不能在代码中直接使用。

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)

参数

o
Object

XmlSerializer 尝试反序列化的对象,该对象随后可通过 ObjectBeingDeserialized 属性进行访问。An object that the XmlSerializer is attempting to deserialize, subsequently accessible through the ObjectBeingDeserialized property.

attr
XmlAttribute

XmlAttribute,表示要考查的特性。An XmlAttribute that represents the attribute in question.

注解

的受保护成员 XmlSerializationReader 仅供在 .NET FRAMEWORK XML 序列化基础结构内部使用的派生类使用。The protected members of XmlSerializationReader are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

将处理程序方法添加到 UnknownAttribute 方法,以便在执行其方法时处理未知特性 XmlSerializer DeserializeAdd a handler method to the UnknownAttribute method to handle unknown attributes while the XmlSerializer is executing its Deserialize method.

适用于

UnknownAttribute(Object, XmlAttribute, String)

UnknownAttribute 的当前位置引发 XmlReader 事件。Raises an UnknownAttribute event for the current position of the XmlReader.

此 API 支持产品基础结构,不能在代码中直接使用。

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)

参数

o
Object

XmlSerializer 尝试反序列化的对象,该对象随后可通过 ObjectBeingDeserialized 属性进行访问。An object that the XmlSerializer is attempting to deserialize, subsequently accessible through the ObjectBeingDeserialized property.

attr
XmlAttribute

XmlAttribute,表示要考查的特性。A XmlAttribute that represents the attribute in question.

qnames
String

以逗号分隔的 XML 限定名列表。A comma-delimited list of XML qualified names.

适用于