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
RequestResponse
public class LanguageRouteConstraint : Object

Constructors

LanguageRouteConstraint()

Declaration
RequestResponse
public LanguageRouteConstraint()

Methods

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

Declaration
RequestResponse
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

Do you have some feedback for us?

If you have suggestions for improving this article,