MinRouteConstraint 类

定义

将路由参数约束为有一个最小值的长型值。

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

构造函数

MinRouteConstraint(Int64)

初始化 MinRouteConstraint 类的新实例。

属性

Min

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

方法

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

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

显式接口实现

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

将路由参数约束为有一个最小值的长型值。

适用于