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.Clear Method (Type)


Removes all the service instances of the given service type.

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

public virtual void Clear(
	Type serviceType


Type: System.Type

The service type to clear from the services list.

Return to top
© 2015 Microsoft