共用方式為


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)

限制路由參數僅表示布林值。

適用於