Freigeben über


ControllerServices.GetServices Method

Gets the list of service objects for a given service type.

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

Syntax

'Declaration
Public Overrides Function GetServices ( _
    serviceType As Type _
) As IEnumerable(Of Object)
'Usage
Dim instance As ControllerServices 
Dim serviceType As Type 
Dim returnValue As IEnumerable(Of Object)

returnValue = instance.GetServices(serviceType)
public override IEnumerable<Object> GetServices(
    Type serviceType
)
public:
virtual IEnumerable<Object^>^ GetServices(
    Type^ serviceType
) override
abstract GetServices : 
        serviceType:Type -> IEnumerable<Object> 
override GetServices : 
        serviceType:Type -> IEnumerable<Object> 
public override function GetServices(
    serviceType : Type
) : IEnumerable<Object>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<Object>
The list of service objects of the specified type, or an empty list if the service is not found.

See Also

Reference

ControllerServices Class

System.Web.Http.Controllers Namespace