LongRouteConstraint 类

定义

约束某个路由参数,使之仅代表 64 位整数值。

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

构造函数

LongRouteConstraint()

约束某个路由参数,使之仅代表 64 位整数值。

方法

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

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

显式接口实现

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

约束某个路由参数,使之仅代表 64 位整数值。

适用于