共用方式為


CompositeRouteConstraint 類別

定義

以數個子條件約束來限制路由。

public ref class CompositeRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraint
public class CompositeRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
public class CompositeRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy
type CompositeRouteConstraint = class
    interface IRouteConstraint
type CompositeRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
type CompositeRouteConstraint = class
    interface IParameterPolicy
    interface IRouteConstraint
type CompositeRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
    interface IParameterLiteralNodeMatchingPolicy
Public Class CompositeRouteConstraint
Implements IRouteConstraint
Public Class CompositeRouteConstraint
Implements IParameterLiteralNodeMatchingPolicy, IRouteConstraint
繼承
CompositeRouteConstraint
實作

建構函式

CompositeRouteConstraint(IEnumerable<IRouteConstraint>)

初始化 CompositeRouteConstraint 類別的新執行個體。

屬性

Constraints

取得必須符合此條件約束的要符合的子條件約束。

方法

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

判斷 URL 參數是否包含對這個條件約束有效的值。

明確介面實作

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

以數個子條件約束來限制路由。

適用於