AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

RegisterRoutes..::..RemoveRoute Method

Removes a named route from the route collection if it exists.

Namespace:  AdvantageCMS.Core.Routing
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static void RemoveRoute(
	RouteCollection routes,
	string name
)

Parameters

routes
Type: RouteCollection
The route collection to remove the route from.
name
Type: String
The name of the route to remove.