| ServiceContainerGetAllInstancesTService Method |
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)
Syntax public IEnumerable<TService> GetAllInstances<TService>()
Public Function GetAllInstances(Of TService) As IEnumerable(Of TService)
public:
generic<typename TService>
virtual IEnumerable<TService>^ GetAllInstances() sealed
abstract GetAllInstances : unit -> IEnumerable<'TService>
override GetAllInstances : unit -> IEnumerable<'TService>
Type Parameters
- TService
- The type of the service requested.
Return Value
Type:
IEnumerableTService
A sequence of instances of the requested
TService.
Implements
IServiceLocatorGetAllInstancesTServiceExceptions 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