Click or drag to resize
DigitalRuneIServiceLocatorGetAllInstances Method (Type)
Get all instances of the given serviceType currently registered in the container.

Namespace: Microsoft.Practices.ServiceLocation
Assembly: Microsoft.Practices.ServiceLocation (in Microsoft.Practices.ServiceLocation.dll) Version: 1.3.0.0 (1.3.0.0)
Syntax
IEnumerable<Object> GetAllInstances(
	Type serviceType
)

Parameters

serviceType
Type: SystemType
Type of object requested.

Return Value

Type: IEnumerableObject
A sequence of instances of the requested serviceType.
Exceptions
ExceptionCondition
ActivationExceptionif there is are errors resolving the service instance.
See Also