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
public void Add( Action<RouteCollection> routeRegistration )
Exception | Condition |
---|---|
ArgumentNullException | Thrown when routeRegistration is null. |
InvalidOperationException | Thrown when Execute(RouteCollection) has already been called. |