BoolRouteConstraint 类

定义

约束某个路由参数,使之仅代表布尔值。

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

构造函数

BoolRouteConstraint()

约束某个路由参数,使之仅代表布尔值。

方法

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

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

显式接口实现

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

约束某个路由参数,使之仅代表布尔值。

适用于