 | IServiceLocatorGetAllInstances Method (Type) |
Get all instances of the given serviceType currently
registered in the container.
Namespace: Microsoft.Practices.ServiceLocationAssembly: Microsoft.Practices.ServiceLocation (in Microsoft.Practices.ServiceLocation.dll) Version: 1.3.0.0 (1.3.0.0)
SyntaxIEnumerable<Object> GetAllInstances(
Type serviceType
)
Function GetAllInstances (
serviceType As Type
) As IEnumerable(Of Object)
IEnumerable<Object^>^ GetAllInstances(
Type^ serviceType
)
abstract GetAllInstances :
serviceType : Type -> IEnumerable<Object>
Parameters
- serviceType
- Type: SystemType
Type of object requested.
Return Value
Type:
IEnumerableObjectA sequence of instances of the requested
serviceType.
Exceptions
See Also