SiteCultureConstraintMatch Method (IHttpContext, String, IDictionaryString, Object, Boolean) |
Determines whether the URL parameter contains an allowed culture name for this constraint.
Namespace: Kentico.Web.Mvc.InternalAssembly: Kentico.Web.Mvc (in Kentico.Web.Mvc.dll) Version: 13.0.131
Syntax protected override bool Match(
IHttpContext httpContext,
string routeKey,
IDictionary<string, Object> values,
bool isUrlGeneration
)
Parameters
- httpContext
- Type: CMS.Base.InternalIHttpContext
An object that encapsulates information about the HTTP request. - routeKey
- Type: SystemString
The name of the parameter that is being checked. - values
- Type: System.Collections.GenericIDictionaryString, Object
An object that contains the parameters for the URL. - isUrlGeneration
- Type: SystemBoolean
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 a valid value; otherwise, false.
See Also