ServicesContainer.GetServices Method
Gets a collection of service instanes of a specified type.
Namespace: System.Web.Http.Controllers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public MustOverride Function GetServices ( _
serviceType As Type _
) As IEnumerable(Of Object)
'Usage
Dim instance As ServicesContainer
Dim serviceType As Type
Dim returnValue As IEnumerable(Of Object)
returnValue = instance.GetServices(serviceType)
public abstract IEnumerable<Object> GetServices(
Type serviceType
)
public:
virtual IEnumerable<Object^>^ GetServices(
Type^ serviceType
) abstract
abstract GetServices :
serviceType:Type -> IEnumerable<Object>
public abstract function GetServices(
serviceType : Type
) : IEnumerable<Object>
Parameters
serviceType
Type: System.TypeThe service type.
Return Value
Type: System.Collections.Generic.IEnumerable<Object>
A collection of service instances.