Click or drag to resize
DigitalRuneServiceContainerGetAllInstances Method (Type)
Gets all named instances of the given service type currently registered in the container.

Namespace: DigitalRune.ServiceLocation
Assembly: DigitalRune.ServiceLocation (in DigitalRune.ServiceLocation.dll) Version: 1.3.0.0 (1.3.0.13596)
Syntax
public IEnumerable<Object> GetAllInstances(
	Type serviceType
)

Parameters

serviceType
Type: SystemType
The type of the service requested.

Return Value

Type: IEnumerableObject
A sequence of instances of the requested serviceType.

Implements

IServiceLocatorGetAllInstances(Type)
Exceptions
ExceptionCondition
ActivationException An error occurred while resolving the service instance.
Remarks
This method returns only "named" instances. An instance is "named" if it was registered with a key that is not (see method Register(Type, String, Object) and its overloads).
See Also