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)

public:
virtual Object^ GetService(
	Type^ serviceType
) override

Parameters

serviceType
Type: System::Type^

The type of service.

Return Value

Type: System::Object^

The first instance of the service, or null if the service is not found.

Return to top
Show: