UnityContainer.ResolveAll Method

Return instances of all registered types requested.

Namespace: Microsoft.Practices.Unity
Assembly: Microsoft.Practices.Unity (in Microsoft.Practices.Unity.dll) Version: 3.0.0.0 (3.0.1304.0)

Syntax

public IEnumerable<Object> ResolveAll(
    Type t,
    params ResolverOverride[] resolverOverrides
)
'Declaration
Public Function ResolveAll ( 
    t As Type,
    ParamArray resolverOverrides As ResolverOverride()
) As IEnumerable(Of Object)
public:
virtual IEnumerable<Object^>^ ResolveAll(
    Type^ t, 
    ... array<ResolverOverride^>^ resolverOverrides
) sealed

Parameters

Return Value

Type: IEnumerable<Object>
Set of objects of type t.

Implements

IUnityContainer.ResolveAll(Type, array<ResolverOverride[])

Remarks

This method is useful if you've registered multiple types with the same Type but different names.

Be aware that this method does NOT return an instance for the default (unnamed) registration.

See Also

UnityContainer Class

UnityContainer Members

Microsoft.Practices.Unity Namespace