MaxLengthRouteConstraint Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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) | |