HttpRouteCollection.Remove Method (String)
Removes an IHttpRoute instance from the collection.
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
public virtual bool Remove(
string name
)
public:
virtual bool Remove(
String^ name
)
abstract Remove :
name:string -> bool
override Remove :
name:string -> bool
Public Overridable Function Remove (
name As String
) As Boolean
Parameters
name
Type: System.StringThe name of the route to remove.
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
HttpRouteCollection Class
System.Web.Http Namespace
Return to top