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)

public abstract Object GetService(
	Type serviceType
)

Parameters

serviceType
Type: System.Type

The service type.

Return Value

Type: System.Object
Show:
© 2015 Microsoft