Click or drag to resize
RouteCollectionAddRoutesMethodsMapRoutes Method
Adds system routes such as Kentico HTTP handlers or feature specific routes. All required features must be enabled prior to calling this method as feature specific routes cannot be added later.

Namespace: Kentico.Web.Mvc
Assembly: Kentico.Web.Mvc (in Kentico.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public static void MapRoutes(
	this ExtensionPoint<RouteCollection> instance
)

Parameters

instance
Type: Kentico.Web.MvcExtensionPointRouteCollection
The object that provides methods to add routes to Kentico HTTP handlers.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ExtensionPointRouteCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptioninstance is null.
See Also