---
title: "Class LanguageRouteConstraint"
slug: "sitecore.aspnet.renderingengine.localization.languagerouteconstraint"
abstract: ""
---
# Class LanguageRouteConstraint

## Inheritance

System.Object

LanguageRouteConstraint

### Implements

Microsoft.AspNetCore.Routing.IRouteConstraint

Microsoft.AspNetCore.Routing.IParameterPolicy

#### **Namespace**: Sitecore.AspNet.RenderingEngine.Localization

##### **Assembly**: Sitecore.AspNet.RenderingEngine.dll

##### Syntax

```csharp
public class LanguageRouteConstraint : Object

```

### Constructors

#### LanguageRouteConstraint()

##### Declaration

```csharp
public LanguageRouteConstraint()

```

### Methods

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

##### Declaration

```csharp
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
