Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'Declaration
Public Function Remove ( _
serviceType As Type, _
service As Object _
) As Boolean
'Usage
Dim instance As ServicesContainer
Dim serviceType As Type
Dim service As Object
Dim returnValue As Boolean
returnValue = instance.Remove(serviceType, _
service)
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 : Type,
service : Object
) : boolean
Parameters
serviceType
Type: System.TypeThe service type.
service
Type: System.ObjectThe service instance to remove.
Return Value
Type: System.Boolean
true if the item is successfully removed; otherwise, false.