Compartilhar via


DefaultServices.GetServiceInstances Method

Gets the list of service objects for a given service type, and validates the service type.

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

Syntax

'Declaration
Protected Overrides 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 override List<Object> GetServiceInstances(
    Type serviceType
)
protected:
virtual List<Object^>^ GetServiceInstances(
    Type^ serviceType
) override
abstract GetServiceInstances : 
        serviceType:Type -> List<Object> 
override GetServiceInstances : 
        serviceType:Type -> List<Object> 
protected override function GetServiceInstances(
    serviceType : Type
) : List<Object>

Parameters

Return Value

Type: System.Collections.Generic.List<Object>
The list of service objects of the specified type.

See Also

Reference

DefaultServices Class

System.Web.Http.Services Namespace