LengthRouteConstraint Constructors
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.
Overloads
LengthRouteConstraint(Int32) |
Initializes a new instance of the LengthRouteConstraint class that constrains a route parameter to be a string of a given length. |
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)
- Source:
- LengthRouteConstraint.cs
- Source:
- LengthRouteConstraint.cs
- Source:
- LengthRouteConstraint.cs
Initializes a new instance of the LengthRouteConstraint class that constrains a route parameter to be a string of a given length.
public:
LengthRouteConstraint(int length);
public LengthRouteConstraint (int length);
new Microsoft.AspNetCore.Routing.Constraints.LengthRouteConstraint : int -> Microsoft.AspNetCore.Routing.Constraints.LengthRouteConstraint
Public Sub New (length As Integer)
Parameters
- length
- Int32
The length of the route parameter.
Applies to
LengthRouteConstraint(Int32, Int32)
- Source:
- LengthRouteConstraint.cs
- Source:
- LengthRouteConstraint.cs
- Source:
- LengthRouteConstraint.cs
Initializes a new instance of the LengthRouteConstraint class that constrains a route parameter to be a string of a given length.
public:
LengthRouteConstraint(int minLength, int maxLength);
public LengthRouteConstraint (int minLength, int maxLength);
new Microsoft.AspNetCore.Routing.Constraints.LengthRouteConstraint : int * int -> Microsoft.AspNetCore.Routing.Constraints.LengthRouteConstraint
Public Sub New (minLength As Integer, maxLength As Integer)
Parameters
- minLength
- Int32
The minimum length allowed for the route parameter.
- maxLength
- Int32
The maximum length allowed for the route parameter.