Share via


MaxLengthRouteConstraint Class

Definition

Constrains a route parameter to be a string with a maximum length.

public class MaxLengthRouteConstraint : System.Web.Routing.IRouteConstraint
type MaxLengthRouteConstraint = class
    interface IRouteConstraint
Public Class MaxLengthRouteConstraint
Implements IRouteConstraint
Inheritance
MaxLengthRouteConstraint
Implements

Constructors

Name Description
MaxLengthRouteConstraint(Int32)

Properties

Name Description
MaxLength

Gets the maximum length of the route parameter.

Methods

Name Description
Match(HttpContextBase, Route, String, RouteValueDictionary, RouteDirection)

Applies to