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 ref class MaxLengthRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraintpublic class MaxLengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraintpublic class MaxLengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicytype MaxLengthRouteConstraint = class
    interface IRouteConstrainttype MaxLengthRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
    interface IParameterLiteralNodeMatchingPolicytype MaxLengthRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicytype MaxLengthRouteConstraint = class
    interface IParameterPolicy
    interface IRouteConstraintPublic Class MaxLengthRouteConstraint
Implements IRouteConstraintPublic Class MaxLengthRouteConstraint
Implements IParameterLiteralNodeMatchingPolicy, IRouteConstraint- Inheritance
- 
				MaxLengthRouteConstraint
- Implements
Constructors
| MaxLengthRouteConstraint(Int32) | Initializes a new instance of the MaxLengthRouteConstraint class. | 
Properties
| MaxLength | Gets the maximum length allowed for the route parameter. | 
Methods
| Match(HttpContext, IRouter, String, RouteValueDictionary, RouteDirection) | Determines whether the URL parameter contains a valid value for this constraint. | 
Explicit Interface Implementations
| IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String) |