다음을 통해 공유


RouteConstraintMatcher.Match 메서드

정의

제공된 constraints가 일치하는지 확인 routeValues 합니다.

public:
 static bool Match(System::Collections::Generic::IDictionary<System::String ^, Microsoft::AspNetCore::Routing::IRouteConstraint ^> ^ constraints, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ routeValues, Microsoft::AspNetCore::Http::HttpContext ^ httpContext, Microsoft::AspNetCore::Routing::IRouter ^ route, Microsoft::AspNetCore::Routing::RouteDirection routeDirection, Microsoft::Extensions::Logging::ILogger ^ logger);
public static bool Match (System.Collections.Generic.IDictionary<string,Microsoft.AspNetCore.Routing.IRouteConstraint> constraints, Microsoft.AspNetCore.Routing.RouteValueDictionary routeValues, Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.IRouter route, Microsoft.AspNetCore.Routing.RouteDirection routeDirection, Microsoft.Extensions.Logging.ILogger logger);
static member Match : System.Collections.Generic.IDictionary<string, Microsoft.AspNetCore.Routing.IRouteConstraint> * Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Routing.IRouter * Microsoft.AspNetCore.Routing.RouteDirection * Microsoft.Extensions.Logging.ILogger -> bool
Public Shared Function Match (constraints As IDictionary(Of String, IRouteConstraint), routeValues As RouteValueDictionary, httpContext As HttpContext, route As IRouter, routeDirection As RouteDirection, logger As ILogger) As Boolean

매개 변수

constraints
IDictionary<String,IRouteConstraint>

경로에 대한 제약 조건입니다.

routeValues
RouteValueDictionary

일치하는 경로에서 추출된 경로 매개 변수 값입니다.

httpContext
HttpContext

HttpContext 현재 요청과 연결된 입니다.

route
IRouter

이 제약 조건이 속한 라우터입니다.

routeDirection
RouteDirection

들어오는 요청이 처리될 때 또는 URL이 생성될 때 제약 조건 검사 수행되는지 여부를 나타냅니다.

반환

true 모든 경로 값이 해당 제약 조건과 일치하면 입니다.

적용 대상