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
- container
Type: Microsoft.Practices.Unity.IUnityContainer
Container that is being configured.
- fromType
Type: System.Type
Type that is being registered.
- toType
Type: System.Type
Type that fromType is being mapped to.
- name
Type: System.String
Name this registration is under.
Return Value
One or more InjectionMember objects that should be applied to the container registration.