Click or drag to resize
RouteRegistration Class
Performs registration of system routes to route collection.
Inheritance Hierarchy
SystemObject
  Kentico.Web.Mvc.InternalRouteRegistration

Namespace: Kentico.Web.Mvc.Internal
Assembly: Kentico.Web.Mvc (in Kentico.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public class RouteRegistration

The RouteRegistration type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberInstance
Gets the current instance of the RouteRegistration class.
Top
Methods
  NameDescription
Public methodAdd

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).

Public methodExecute

Executes registration of routes collected via the Add(ActionRouteCollection) method into routeCollection.

Once the registration executes, no more routes can be added.

Top
See Also