Skip to content

interface IRouteConstraint

cangjie
public interface IRouteConstraint <: IParameterPolicy

功能:定义路由约束接口。

父类型:

成员概览

成员功能
func isMatch(?HttpContext, String, RouteValueDictionary)检查路由值是否满足当前约束。

func isMatch(?HttpContext, String, RouteValueDictionary)

cangjie
func isMatch(context: ?HttpContext, routeKey: String, values: RouteValueDictionary): Bool

功能:检查路由值是否满足当前约束。

参数:

返回值:

  • Bool - 满足约束时返回 true。