GetService Method

ServicesContainer.GetService Method (Type)

 

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

Return to top
Show:
© 2016 Microsoft