RangeRouteConstraint 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.
Constraints a route parameter to be an integer within a given range of values.
public ref class RangeRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraint
public class RangeRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
public class RangeRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy
type RangeRouteConstraint = class
interface IRouteConstraint
type RangeRouteConstraint = class
interface IRouteConstraint
interface IParameterPolicy
type RangeRouteConstraint = class
interface IParameterPolicy
interface IRouteConstraint
type RangeRouteConstraint = class
interface IRouteConstraint
interface IParameterPolicy
interface IParameterLiteralNodeMatchingPolicy
Public Class RangeRouteConstraint
Implements IRouteConstraint
Public Class RangeRouteConstraint
Implements IParameterLiteralNodeMatchingPolicy, IRouteConstraint
- Inheritance
-
RangeRouteConstraint
- Implements
Constructors
RangeRouteConstraint(Int64, Int64) |
Initializes a new instance of the RangeRouteConstraint class. |
Properties
Max |
Gets the maximum allowed value of the route parameter. |
Min |
Gets the minimum allowed value of 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) |