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)

按多个子约束来约束路由。

适用于