ControllerServices.GetService Method (Type)
Gets a service of the specified type.
Namespace: System.Web.Http.Controllers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
public override object GetService(
Type serviceType
)
public:
virtual Object^ GetService(
Type^ serviceType
) override
override GetService :
serviceType:Type -> Object
Public Overrides Function GetService (
serviceType As Type
) As Object
Parameters
serviceType
Type: System.TypeThe type of service.
Return Value
Type: System.Object
The first instance of the service, or null if the service is not found.
See Also
ControllerServices Class
System.Web.Http.Controllers Namespace
Return to top