 | ServiceContainerGetAllInstances Method (Type) |
Gets all named instances of the given service type currently registered in the
container.
Namespace: DigitalRune.ServiceLocationAssembly: DigitalRune.ServiceLocation (in DigitalRune.ServiceLocation.dll) Version: 1.3.0.0 (1.3.0.13596)
Syntaxpublic IEnumerable<Object> GetAllInstances(
Type serviceType
)
Public Function GetAllInstances (
serviceType As Type
) As IEnumerable(Of Object)
public:
virtual IEnumerable<Object^>^ GetAllInstances(
Type^ serviceType
) sealed
abstract GetAllInstances :
serviceType : Type -> IEnumerable<Object>
override GetAllInstances :
serviceType : Type -> IEnumerable<Object>
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
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