InjectionPolicy Class

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.

Base class for Policies that specifies which handlers apply to which methods of an object.

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

Syntax

'Declaration
Public MustInherit Class InjectionPolicy
public abstract class InjectionPolicy
public ref class InjectionPolicy abstract
public abstract class InjectionPolicy

Remarks

This base class always enforces the ApplyNoPoliciesMatchingRule before passing the checks onto derived classes. This way, derived classes do not need to worry about implementing this check.

It also means that derived classes cannot override this rule. This is considered a feature.

Inheritance Hierarchy

System.Object
Microsoft.Practices.Unity.InterceptionExtension.InjectionPolicy
Microsoft.Practices.Unity.InterceptionExtension.AttributeDrivenPolicy
Microsoft.Practices.Unity.InterceptionExtension.RuleDrivenPolicy

See Also

InjectionPolicy Members

Microsoft.Practices.Unity.InterceptionExtension Namespace