Dela via


RangeRouteConstraint Class

Definition

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)

Applies to