Share via


ConstructorElement.GetInjectionMembers Method

Return the set of InjectionMembers that are needed to configure the container according to this configuration element.

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

Syntax

'Declaration
Public Overrides Function GetInjectionMembers ( _
    container As IUnityContainer, _
    fromType As Type, _
    toType As Type, _
    name As String _
) As IEnumerable(Of InjectionMember)
public override IEnumerable<InjectionMember> GetInjectionMembers(
    IUnityContainer container,
    Type fromType,
    Type toType,
    string name
)
public:
virtual IEnumerable<InjectionMember^>^ GetInjectionMembers(
    IUnityContainer^ container, 
    Type^ fromType, 
    Type^ toType, 
    String^ name
) override
public override function GetInjectionMembers(
    container : IUnityContainer, 
    fromType : Type, 
    toType : Type, 
    name : String
) : IEnumerable<InjectionMember>

Parameters

  • fromType
    Type: System.Type
    Type that is being registered.
  • toType
    Type: System.Type
    Type that fromType is being mapped to.

Return Value

One or more InjectionMember objects that should be applied to the container registration.

See Also

ConstructorElement Class

Microsoft.Practices.Unity.Configuration Namespace