Freigeben über


PolicyDefinition.AddMatchingRule 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.

Overload List

  Name Description
Ee651209.pubmethod(en-us,PandP.10).gif AddMatchingRule<TMatchingRule>(array<InjectionMember[])
Configures injection for a new IMatchingRule and makes it available as a matching rule in the current policy.
Ee651209.pubmethod(en-us,PandP.10).gif AddMatchingRule(IMatchingRule)
Makes instance a matching rule in the current policy.
Ee651209.pubmethod(en-us,PandP.10).gif AddMatchingRule(String)
Adds a reference to matching rule by name.
Ee651209.pubmethod(en-us,PandP.10).gif AddMatchingRule<TMatchingRule>(LifetimeManager, array<InjectionMember[])
Configures injection for a new IMatchingRule and makes it available as a matching rule in the current policy, using the given LifetimeManager.
Ee651209.pubmethod(en-us,PandP.10).gif AddMatchingRule<TMatchingRule>(String, array<InjectionMember[])
Configures injection for a new IMatchingRule using the specified name and makes it available as a matching rule in the current policy.
Ee651209.pubmethod(en-us,PandP.10).gif AddMatchingRule(Type, array<InjectionMember[])
Configures injection for a new IMatchingRule and makes it available as a matching rule in the current policy.
Ee651209.pubmethod(en-us,PandP.10).gif AddMatchingRule<TMatchingRule>(String, LifetimeManager, array<InjectionMember[])
Configures injection for a new IMatchingRule using the specified name and makes it available as a matching rule in the current policy, using the given LifetimeManager.
Ee651209.pubmethod(en-us,PandP.10).gif AddMatchingRule(Type, LifetimeManager, array<InjectionMember[])
Configures injection for a new IMatchingRule and makes it available as a matching rule in the current policy, using the given LifetimeManager.
Ee651209.pubmethod(en-us,PandP.10).gif AddMatchingRule(Type, String, array<InjectionMember[])
Configures injection for a new IMatchingRule using the specified name and makes it available as a matching rule in the current policy.
Ee651209.pubmethod(en-us,PandP.10).gif AddMatchingRule(Type, String, LifetimeManager, array<InjectionMember[])
Configures injection for a new IMatchingRule and makes it available as a matching rule in the current policy, using the given LifetimeManager.

See Also

PolicyDefinition Class

PolicyDefinition Members

Microsoft.Practices.Unity.InterceptionExtension Namespace