MaxLengthRouteConstraint 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
限制路由參數為最大長度的字串。
public ref class MaxLengthRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraint
public class MaxLengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
public class MaxLengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy
type MaxLengthRouteConstraint = class
interface IRouteConstraint
type MaxLengthRouteConstraint = class
interface IRouteConstraint
interface IParameterPolicy
type MaxLengthRouteConstraint = class
interface IParameterPolicy
interface IRouteConstraint
type MaxLengthRouteConstraint = class
interface IRouteConstraint
interface IParameterPolicy
interface IParameterLiteralNodeMatchingPolicy
Public Class MaxLengthRouteConstraint
Implements IRouteConstraint
Public Class MaxLengthRouteConstraint
Implements IParameterLiteralNodeMatchingPolicy, IRouteConstraint
- 繼承
-
MaxLengthRouteConstraint
- 實作
建構函式
MaxLengthRouteConstraint(Int32) |
初始化 MaxLengthRouteConstraint 類別的新執行個體。 |
屬性
MaxLength |
取得路由參數允許的最大長度。 |
方法
Match(HttpContext, IRouter, String, RouteValueDictionary, RouteDirection) |
判斷 URL 參數是否包含對這個條件約束有效的值。 |
明確介面實作
IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String) |
限制路由參數為最大長度的字串。 |