System.Web.Configuration.ProfilePropertySettingsCollection.OnDeserializeUnrecognizedElement Method

Handles the reading of unrecognized configuration elements from a configuration file and causes the configuration system to throw an exception if the element cannot be handled.

Syntax

protected override bool OnDeserializeUnrecognizedElement (string elementName, System.Xml.XmlReader reader)

Parameters

elementName
The name of the unrecognized element.
reader
An input stream that reads XML from the configuration file.

Returns

true if the unrecognized element was deserialized successfully; otherwise, false.

Remarks

This implementation of ProfilePropertySettingsCollection.OnDeserializeUnrecognizedElement(string, System.Xml.XmlReader) throws specialized errors if the element name is either "clear" or "group". After checking for these conditions, the method then explicitly calls its base implementation, the System.Configuration.ConfigurationElementCollection.OnDeserializeUnrecognizedElement(string, System.Xml.XmlReader) method.

Requirements

Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0