IntRouteConstraint 类

定义

将路由参数约束为仅表示 32 位整数值。

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

构造函数

IntRouteConstraint()

将路由参数约束为仅表示 32 位整数值。

方法

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

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

显式接口实现

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

将路由参数约束为仅表示 32 位整数值。

适用于