Export (0) Print
Expand All

ServicesContainer.Remove Method

Removes the first occurrence of the given service from the service list for the given service type.

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

public function Remove(
	serviceType : Type, 
	service : Object
) : boolean

Parameters

serviceType
Type: System.Type

The service type.

service
Type: System.Object

The service instance to remove.

Return Value

Type: System.Boolean
true if the item is successfully removed; otherwise, false.
Show:
© 2014 Microsoft