Share via


LengthRouteConstraint 클래스

정의

지정된 길이 또는 지정된 길이 범위 내의 문자열이 되도록 경로 매개 변수를 제한합니다.

public ref class LengthRouteConstraint : Microsoft::AspNetCore::Routing::IRouteConstraint
public class LengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
public class LengthRouteConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint, Microsoft.AspNetCore.Routing.Matching.IParameterLiteralNodeMatchingPolicy
type LengthRouteConstraint = class
    interface IRouteConstraint
type LengthRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
type LengthRouteConstraint = class
    interface IParameterPolicy
    interface IRouteConstraint
type LengthRouteConstraint = class
    interface IRouteConstraint
    interface IParameterPolicy
    interface IParameterLiteralNodeMatchingPolicy
Public Class LengthRouteConstraint
Implements IRouteConstraint
Public Class LengthRouteConstraint
Implements IParameterLiteralNodeMatchingPolicy, IRouteConstraint
상속
LengthRouteConstraint
구현

생성자

LengthRouteConstraint(Int32)

경로 매개 변수를 지정된 길이의 문자열로 제한하는 클래스의 LengthRouteConstraint 새 instance 초기화합니다.

LengthRouteConstraint(Int32, Int32)

경로 매개 변수를 지정된 길이의 문자열로 제한하는 클래스의 LengthRouteConstraint 새 instance 초기화합니다.

속성

MaxLength

경로 매개 변수에 허용되는 최대 길이를 가져옵니다.

MinLength

경로 매개 변수에 허용되는 최소 길이를 가져옵니다.

메서드

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

URL 매개 변수가 이 제약 조건에 유효한 값을 포함하는지 여부를 확인합니다.

명시적 인터페이스 구현

IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String)

지정된 길이 또는 지정된 길이 범위 내의 문자열이 되도록 경로 매개 변수를 제한합니다.

적용 대상