ConfigurationElementInterceptor::OnDeserializeUnrecognizedElement Method (String^, XmlReader^)

.NET Framework (current version)
 

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

Namespace:   System.IdentityModel.Configuration
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected:
virtual bool OnDeserializeUnrecognizedElement(
	String^ elementName,
	XmlReader^ reader
) override

Parameters

elementName
Type: System::String^

The name of the unknown subelement.

reader
Type: System.Xml::XmlReader^

The XML reader that is being used for deserialization.

Return Value

Type: System::Boolean

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

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.

.NET Framework
Available since 4.5
Return to top
Show: