Export (0) Print
Expand All

ServicesContainer.GetService Method

Gets a service instance of a specified type.

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

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

returnValue = instance.GetService(serviceType)

Parameters

serviceType
Type: System.Type

The service type.

Return Value

Type: System.Object
Show:
© 2014 Microsoft