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

MaxLengthRouteConstraint(Int32)

Properties

MaxLength

Gets the maximum length of the route parameter.

Methods

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

Applies to