Click or drag to resize
RouteRegistrationAdd Method

Adds route registration to be executed on route collection supplied in Execute(RouteCollection) call.

Route registrations are queued and performed on the route collection passed to the Execute(RouteCollection) method, once the method is called. After being executed, no additional route registrations can be added (i.e. route registration execution must not precede 'use feature' methods calls so that features can add their specific routes).

Namespace: Kentico.Web.Mvc.Internal
Assembly: Kentico.Web.Mvc (in Kentico.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public void Add(
	Action<RouteCollection> routeRegistration
)

Parameters

routeRegistration
Type: SystemActionRouteCollection
Route registration to be executed on the route collection passed to Execute(RouteCollection), once it is called.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when routeRegistration is null.
InvalidOperationExceptionThrown when Execute(RouteCollection) has already been called.
See Also