Share via


PolicyChildElement Class

Base class for the two children of the Policy element: MatchingRuleElement and CallHandlerElement.

Namespace:  Microsoft.Practices.Unity.InterceptionExtension.Configuration
Assembly:  Microsoft.Practices.Unity.Interception.Configuration (in Microsoft.Practices.Unity.Interception.Configuration.dll)

Syntax

'Declaration
Public MustInherit Class PolicyChildElement _
    Inherits DeserializableConfigurationElement
public abstract class PolicyChildElement : DeserializableConfigurationElement
public ref class PolicyChildElement abstract : public DeserializableConfigurationElement
public abstract class PolicyChildElement extends DeserializableConfigurationElement

Remarks

These configuration elements have a required "name" attribute, an optional "type" attribute, and optional child elements <lifetime> and <injection>

Elements without a value for the type attribute can only have a value for the name attribute, and indicate that the represented handler or rule is configured elsewhere and that a reference to the given name must be added to the policy to be resolved, while elements with a value for the type attribute indicate how the represented handler or rule should be built and can optionally specify lifetime management and injection configuration.

This element is similar to the RegisterElement, except that it does not provide an extension point for arbitrary configuration.

Inheritance Hierarchy

System.Object
  System.Configuration.ConfigurationElement
    Microsoft.Practices.Unity.Configuration.ConfigurationHelpers.DeserializableConfigurationElement
      Microsoft.Practices.Unity.InterceptionExtension.Configuration.PolicyChildElement
        Microsoft.Practices.Unity.InterceptionExtension.Configuration.CallHandlerElement
        Microsoft.Practices.Unity.InterceptionExtension.Configuration.MatchingRuleElement

See Also

PolicyChildElement Members

Microsoft.Practices.Unity.InterceptionExtension.Configuration Namespace