Export (0) Print
Expand All

ControllerServices.GetService Method

Gets a service of the specified type.

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

'Declaration
Public Overrides Function GetService ( _
	serviceType As Type _
) As Object
'Usage
Dim instance As ControllerServices 
Dim serviceType As Type 
Dim returnValue As Object 

returnValue = instance.GetService(serviceType)

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.
Show:
© 2014 Microsoft