Click or drag to resize
RegisterHttpHandlerAttribute Class
Represents a route to a Kentico HTTP handler using a route template that supports inline constraints.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    CMS.Routing.WebRegisterHttpHandlerAttribute

Namespace: CMS.Routing.Web
Assembly: CMS.Routing.Web (in CMS.Routing.Web.dll) Version: 10.0.0
Syntax
C#
public sealed class RegisterHttpHandlerAttribute : Attribute, 
	IPreInitAttribute, IRouteHandler

The RegisterHttpHandlerAttribute type exposes the following members.

Constructors
  NameDescription
Public methodRegisterHttpHandlerAttribute
Initializes a new instance of the RegisterHttpHandlerAttribute class.
Top
Properties
  NameDescription
Public propertyMarkedType
Gets the type of a Kentico HTTP handler.
Public propertyOrder
Gets or sets the order weight of the route.
Public propertyRouteTemplate
Gets the route template.
Top
Methods
  NameDescription
Public methodGetHttpHandler
Provides the Kentico HTTP handler that processes the request.
Public methodPreInit
Adds this instance to the table with routes to Kentico HTTP handlers.
Top
Remarks
Route templates are compatible with ASP.NET MVC 5 route templates with the following exceptions:
  • Only guid and int inline constraints are supported, other constraints are ignored.
  • There must be no unpaired braces except the escaped ones, otherwise an exception is thrown.
Routes to Kentico HTTP handlers are excluded from URL generation, i.e. in MVC applications it is not possible to accidentally generate an URL to a Kentico HTTP handler instead of a controller action.
See Also