HttpRouteCollection.Remove Method

Removes an IHttpRoute instance from the collection.

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

Syntax

'Declaration
Public Overridable Function Remove ( _
    name As String _
) As Boolean
'Usage
Dim instance As HttpRouteCollection
Dim name As String
Dim returnValue As Boolean

returnValue = instance.Remove(name)
public virtual bool Remove(
    string name
)
public:
virtual bool Remove(
    String^ name
)
abstract Remove : 
        name:string -> bool 
override Remove : 
        name:string -> bool 
public function Remove(
    name : String
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the element is successfully removed; otherwise, false. This method also returns false if name was not found in the collection.

See Also

Reference

HttpRouteCollection Class

System.Web.Http Namespace