IDependencyResolver.GetServices Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Try to get a list of services of the given type.

Namespace:  System.Web.Http.Services
Assembly:  System.Web.Http (in System.Web.Http.dll)


Function GetServices ( _
    serviceType As Type _
) As IEnumerable(Of Object)
IEnumerable<Object> GetServices(
    Type serviceType
IEnumerable<Object^>^ GetServices(
    Type^ serviceType
abstract GetServices : 
        serviceType:Type -> IEnumerable<Object> 
function GetServices(
    serviceType : Type
) : IEnumerable<Object>


  • serviceType
    Type: System.Type
    Type of services to request.

Return Value

Type: System.Collections.Generic.IEnumerable<Object>
an enumeration (possibly empty) of the service. Return an empty enumeration is the service is not found (don't return null)

See Also


IDependencyResolver Interface

System.Web.Http.Services Namespace