ServicesContainer.GetServices Method (Type)
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
public abstract IEnumerable<object> GetServices(
Type serviceType
)
public:
virtual IEnumerable<Object^>^ GetServices(
Type^ serviceType
) abstract
abstract GetServices :
serviceType:Type -> IEnumerable<Object>
Public MustOverride Function GetServices (
serviceType As Type
) As IEnumerable(Of Object)
Parameters
serviceType
Type: System.TypeThe service type.
Return Value
Type: System.Collections.Generic.IEnumerable<Object>
A collection of service instances.
See Also
ServicesContainer Class
System.Web.Http.Controllers Namespace
Return to top