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::IRouteConstraint
	public class LengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
	public class LengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy
	type LengthRouteConstraint = class
    interface IRouteConstraint
	type LengthRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
    interface IParameterLiteralNodeMatchingPolicy
	type LengthRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
	type LengthRouteConstraint = class
    interface IParameterPolicy
    interface IRouteConstraint
	Public Class LengthRouteConstraint
Implements IRouteConstraint
	Public 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) |