Редагувати

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


ConfigurationElementInterceptor.OnDeserializeUnrecognizedElement Method

Definition

Gets a value that indicates whether an unknown element is encountered during deserialization. Always returns true.

protected:
 override bool OnDeserializeUnrecognizedElement(System::String ^ elementName, System::Xml::XmlReader ^ reader);
protected override bool OnDeserializeUnrecognizedElement (string elementName, System.Xml.XmlReader reader);
override this.OnDeserializeUnrecognizedElement : string * System.Xml.XmlReader -> bool
Protected Overrides Function OnDeserializeUnrecognizedElement (elementName As String, reader As XmlReader) As Boolean

Parameters

elementName
String

The name of the unknown subelement.

reader
XmlReader

The XML reader that is being used for deserialization.

Returns

Always returns true, which indicates that an unrecognized element has been encountered.

Remarks

The ConfigurationElementInterceptor class is specifically implemented to handle arbitrary, user-defined attributes and elements. For this reason, this method returns true when the .NET Framework detects an unrecognized element or attribute to keep the parser running.

Applies to