Click or drag to resize
RouteBuilderAddRoutesMethodsMapRoutes 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: 13.0.131
Syntax
C#
public static void MapRoutes(
	this RouteBuilderExtensionPoint instance
)

Parameters

instance
Type: Kentico.Web.MvcRouteBuilderExtensionPoint
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 RouteBuilderExtensionPoint. 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