Class LanguageRouteConstraint

Version: 21.x

Inheritance

System.Object

LanguageRouteConstraint

Implements

Microsoft.AspNetCore.Routing.IRouteConstraint

Microsoft.AspNetCore.Routing.IParameterPolicy

Namespace: Sitecore.AspNet.RenderingEngine.Localization

Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
public class LanguageRouteConstraint : Object

Constructors

LanguageRouteConstraint()

Declaration
public LanguageRouteConstraint()

Methods

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

Declaration
public bool Match(HttpContext httpContext, IRouter route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection)
Parameters
TypeNameDescription
Microsoft.AspNetCore.Http.HttpContexthttpContext
Microsoft.AspNetCore.Routing.IRouterroute
System.StringrouteKey
Microsoft.AspNetCore.Routing.RouteValueDictionaryvalues
Microsoft.AspNetCore.Routing.RouteDirectionrouteDirection
Returns
TypeDescription
System.Boolean

Implements

Microsoft.AspNetCore.Routing.IRouteConstraint

Microsoft.AspNetCore.Routing.IParameterPolicy

If you have suggestions for improving this article, let us know!