IDependencyResolver.GetServices Method (Type)
Resolves multiply registered services.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
IEnumerable<object> GetServices(
Type serviceType
)
IEnumerable<Object^>^ GetServices(
Type^ serviceType
)
abstract GetServices :
serviceType:Type -> IEnumerable<Object>
Function GetServices (
serviceType As Type
) As IEnumerable(Of Object)
Parameters
serviceType
Type: System.TypeThe type of the requested services.
Return Value
Type: System.Collections.Generic.IEnumerable<Object>
The requested services.
Remarks
Implementers should return an empty collection when no service can be found. The ASP.NET MVC framework will generate a run-time error when implementations throw an exception or return null.
For more information about this method, see the entry ASP.NET MVC 3 Service Location on Brad Wilson's blog.
See Also
IDependencyResolver Interface
System.Web.Mvc Namespace
Return to top