AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

RegisterRoutes..::..AddRoute Method

Adds a named route to the route collection if a route with the same name does not already exist.

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

Syntax


public static void AddRoute(
	RouteCollection routes,
	string name,
	Route route
)

Parameters

routes
Type: RouteCollection
The route collection to add the route to.
name
Type: String
The unique name for the route.
route
Type: Route
The route to add.