InterceptorTargetConfigurationElementCollection.OnDeserializeUnrecognizedElement Method
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The latest Unity Application Block information can be found at the Unity Application Block site. |
Figure out the concrete type to create given the type attribute on the given XML reader. If not present, throws an exception.
Namespace: Microsoft.Practices.Unity.InterceptionExtension.Configuration
Assembly: Microsoft.Practices.Unity.Interception.Configuration (in Microsoft.Practices.Unity.Interception.Configuration.dll)
Syntax
'Declaration
Protected Overrides Function OnDeserializeUnrecognizedElement ( _
elementName As String, _
reader As XmlReader _
) As Boolean
protected override bool OnDeserializeUnrecognizedElement(
string elementName,
XmlReader reader
)
protected:
virtual bool OnDeserializeUnrecognizedElement(
String^ elementName,
XmlReader^ reader
) override
protected override function OnDeserializeUnrecognizedElement(
elementName : String,
reader : XmlReader
) : boolean
Parameters
- elementName
Type: System.String
The name of the unrecognized element.
- reader
Type: System.Xml.XmlReader
An input stream that reads XML from the configuration file.
Return Value
true if the unrecognized element was deserialized successfully; otherwise, false. The default is false.
Exceptions
Exception | Condition |
---|---|
System.ArgumentException | elementName starts with the reserved prefix "config" or "lock". |
System.Configuration.ConfigurationErrorsException | The element specified in elementName is the <clear> element. |
See Also
InterceptorTargetConfigurationElementCollection Class
Microsoft.Practices.Unity.InterceptionExtension.Configuration Namespace