MaxRouteConstraint 类

定义

将路由参数约束为有一个最大值的整数。

public ref class MaxRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraint
public class MaxRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
public class MaxRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy
type MaxRouteConstraint = class
    interface IRouteConstraint
type MaxRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
type MaxRouteConstraint = class
    interface IParameterPolicy
    interface IRouteConstraint
type MaxRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
    interface IParameterLiteralNodeMatchingPolicy
Public Class MaxRouteConstraint
Implements IRouteConstraint
Public Class MaxRouteConstraint
Implements IParameterLiteralNodeMatchingPolicy, IRouteConstraint
继承
MaxRouteConstraint
实现

构造函数

MaxRouteConstraint(Int64)

初始化 MaxRouteConstraint 类的新实例。

属性

Max

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

方法

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

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

显式接口实现

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

将路由参数约束为有一个最大值的整数。

适用于