IRouteConstraint 接口

定义

定义类必须实现才能检查某个 URL 参数值是否对约束有效的协定。

public interface class IRouteConstraint
public interface class IRouteConstraint : Microsoft::AspNetCore::Routing::IParameterPolicy
public interface IRouteConstraint
public interface IRouteConstraint : Microsoft.AspNetCore.Routing.IParameterPolicy
type IRouteConstraint = interface
type IRouteConstraint = interface
    interface IParameterPolicy
Public Interface IRouteConstraint
Public Interface IRouteConstraint
Implements IParameterPolicy
派生
实现

方法

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

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

适用于