Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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:
virtual Object^ GetService(
	Type^ serviceType
) abstract

Parameters

serviceType
Type: System::Type^

The service type.

Return Value

Type: System::Object^

Return to top
Show:
© 2015 Microsoft