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)

Syntax

'Declaration
Function GetServices ( _
    serviceType As Type _
) As IEnumerable(Of Object)
'Usage
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>

Parameters

  • 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

Reference

IDependencyScope Interface

System.Web.Http.Dependencies Namespace