RangeRouteConstraint 类

定义

将路由参数约束为给定值范围内的某个整数。

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
继承
RangeRouteConstraint
实现

构造函数

RangeRouteConstraint(Int64, Int64)

初始化 RangeRouteConstraint 类的新实例。

属性

Max

获取路由参数允许的最大值。

Min

获取路由参数允许的最小值。

方法

Match(HttpContext, IRouter, String, RouteValueDictionary, RouteDirection)

确定 URL 参数是否包含此约束的有效值。

显式接口实现

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

将路由参数约束为给定值范围内的某个整数。

适用于