Click or drag to resize
SiteCultureConstraintMatch Method
Determines whether the URL parameter contains an allowed culture name for this constraint.

Namespace: Kentico.Web.Mvc.Internal
Assembly: Kentico.Web.Mvc (in Kentico.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public bool Match(
	HttpContextBase httpContext,
	Route route,
	string parameterName,
	RouteValueDictionary values,
	RouteDirection routeDirection
)

Parameters

httpContext
Type: System.WebHttpContextBase
Object that encapsulates information about the HTTP request.
route
Type: System.Web.RoutingRoute
Object that this constraint belongs to.
parameterName
Type: SystemString
Name of the parameter that is being checked.
values
Type: System.Web.RoutingRouteValueDictionary
Object that contains the parameters for the URL.
routeDirection
Type: System.Web.RoutingRouteDirection
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: Boolean
True if the URL parameter contains an allowed culture name; otherwise, false.

Implements

IRouteConstraintMatch(HttpContextBase, Route, String, RouteValueDictionary, RouteDirection)
See Also