BaseRouteConstraintMatch Method (HttpContextBase, Route, String, RouteValueDictionary, RouteDirection) |
Determines whether the URL parameter contains a valid value for this constraint.
Namespace: Kentico.Web.Mvc.InternalAssembly: Kentico.Web.Mvc (in Kentico.Web.Mvc.dll) Version: 13.0.131
Syntax public bool Match(
HttpContextBase httpContext,
Route route,
string parameterName,
RouteValueDictionary values,
RouteDirection routeDirection
)
Parameters
- httpContext
- Type: System.WebHttpContextBase
An object that encapsulates information about the HTTP request. - route
- Type: System.Web.RoutingRoute
The object that this constraint belongs to. - parameterName
- Type: SystemString
The name of the parameter that is being checked. - values
- Type: System.Web.RoutingRouteValueDictionary
An object that contains the parameters for the URL. - routeDirection
- Type: System.Web.RoutingRouteDirection
An object that indicates whether the constraint check is being performed when an incoming request is being handled or when a URL is being generated.
Return Value
Type:
Booleantrue if the URL parameter contains a valid value; otherwise, false.
Implements
IRouteConstraintMatch(HttpContextBase, Route, String, RouteValueDictionary, RouteDirection)See Also