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 : ObjectConstructors
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
| Type | Name | Description |
|---|---|---|
| Microsoft.AspNetCore.Http.HttpContext | httpContext | |
| Microsoft.AspNetCore.Routing.IRouter | route | |
| System.String | routeKey | |
| Microsoft.AspNetCore.Routing.RouteValueDictionary | values | |
| Microsoft.AspNetCore.Routing.RouteDirection | routeDirection |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Implements
Microsoft.AspNetCore.Routing.IRouteConstraint
Microsoft.AspNetCore.Routing.IParameterPolicy