ServicesContainer.GetService Method (Type)

 

Gets a service instance of a specified type.

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

Syntax

public abstract object GetService(
    Type serviceType
)
public:
virtual Object^ GetService(
    Type^ serviceType
) abstract
abstract GetService : 
        serviceType:Type -> Object
Public MustOverride Function GetService (
    serviceType As Type
) As Object

Parameters

Return Value

Type: System.Object

See Also

ServicesContainer Class
System.Web.Http.Controllers Namespace

Return to top