Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Remove Method

ServicesContainer.Remove Method (Type, Object)

 

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)

member Remove : 
        serviceType:Type *
        service:Object -> bool

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.

Return to top
Show:
© 2015 Microsoft