Partager via


ServicesContainer.GetServiceInstances Method

Gets a mutable list of service instances of a specified type.

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

Syntax

'Declaration
Protected MustOverride Function GetServiceInstances ( _
    serviceType As Type _
) As List(Of Object)
'Usage
Dim serviceType As Type 
Dim returnValue As List(Of Object)

returnValue = Me.GetServiceInstances(serviceType)
protected abstract List<Object> GetServiceInstances(
    Type serviceType
)
protected:
virtual List<Object^>^ GetServiceInstances(
    Type^ serviceType
) abstract
abstract GetServiceInstances : 
        serviceType:Type -> List<Object> 
protected abstract function GetServiceInstances(
    serviceType : Type
) : List<Object>

Parameters

Return Value

Type: System.Collections.Generic.List<Object>
A mutable list of service instances.

See Also

Reference

ServicesContainer Class

System.Web.Http.Controllers Namespace