IDependencyScope.GetServices Method

Retrieves a collection of services from the scope.

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


Function GetServices ( _
    serviceType As Type _
) As IEnumerable(Of Object)
Dim instance As IDependencyScope 
Dim serviceType As Type 
Dim returnValue As IEnumerable(Of Object)

returnValue = instance.GetServices(serviceType)
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

    The collection of services to be retrieved.

Return Value

Type: System.Collections.Generic.IEnumerable<Object>
The retrieved collection of services.

See Also


IDependencyScope Interface

System.Web.Http.Dependencies Namespace