Бөлісу құралы:


MethodSelectorPolicy<TMarkerAttribute> 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.

An implementation of IMethodSelectorPolicy that selects methods by looking for the given TMarkerAttribute attribute on those methods.

Namespace:  Microsoft.Practices.ObjectBuilder2
Assembly:  Microsoft.Practices.ObjectBuilder2 (in Microsoft.Practices.ObjectBuilder2.dll)

Syntax

'Declaration
Public Class MethodSelectorPolicy(Of TMarkerAttribute As Attribute) _
    Inherits MethodSelectorPolicyBase(Of TMarkerAttribute)
public class MethodSelectorPolicy<TMarkerAttribute> : MethodSelectorPolicyBase<TMarkerAttribute>
where TMarkerAttribute : Attribute
generic<typename TMarkerAttribute>
where TMarkerAttribute : Attribute
public ref class MethodSelectorPolicy : public MethodSelectorPolicyBase<TMarkerAttribute>
JScript does not support generic types or methods.

Type Parameters

  • TMarkerAttribute
    Type of attribute used to mark methods to inject.

Inheritance Hierarchy

System.Object
  Microsoft.Practices.ObjectBuilder2.MethodSelectorPolicyBase<TMarkerAttribute>
    Microsoft.Practices.ObjectBuilder2.MethodSelectorPolicy<TMarkerAttribute>

See Also

MethodSelectorPolicy<TMarkerAttribute> Members

Microsoft.Practices.ObjectBuilder2 Namespace