LengthRouteConstraint 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 of a given length or within a given range of lengths.
public ref class LengthRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraintpublic class LengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraintpublic class LengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicytype LengthRouteConstraint = class
    interface IRouteConstrainttype LengthRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
    interface IParameterLiteralNodeMatchingPolicytype LengthRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicytype LengthRouteConstraint = class
    interface IParameterPolicy
    interface IRouteConstraintPublic Class LengthRouteConstraint
Implements IRouteConstraintPublic Class LengthRouteConstraint
Implements IParameterLiteralNodeMatchingPolicy, IRouteConstraint- Inheritance
- 
				LengthRouteConstraint
- Implements
Constructors
| LengthRouteConstraint(Int32, Int32) | Initializes a new instance of the LengthRouteConstraint class that constrains a route parameter to be a string of a given length. | 
| LengthRouteConstraint(Int32) | Initializes a new instance of the LengthRouteConstraint class that constrains a route parameter to be a string of a given length. | 
Properties
| MaxLength | Gets the maximum length allowed for the route parameter. | 
| MinLength | Gets the minimum 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) |