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)

Syntax

public bool Remove(
    Type serviceType,
    object service
)
public:
bool Remove(
    Type^ serviceType,
    Object^ service
)
member Remove : 
        serviceType:Type *
        service:Object -> bool
Public Function Remove (
    serviceType As Type,
    service As Object
) As Boolean

Parameters

Return Value

Type: System.Boolean

true if the item is successfully removed; otherwise, false.

See Also

ServicesContainer Class
System.Web.Http.Controllers Namespace

Return to top