---
title: "Class SitecoreRouteFieldAttribute"
slug: "sitecore.aspnet.renderingengine.binding.attributes.sitecoreroutefieldattribute"
abstract: ""
---
# Class SitecoreRouteFieldAttribute

Binds a Sitecore [Route](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.model.route.html) field.

## Inheritance

System.Object

SitecoreRouteFieldAttribute

### Implements

Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata

#### **Namespace**: Sitecore.AspNet.RenderingEngine.Binding.Attributes

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

##### Syntax

```csharp
public class SitecoreRouteFieldAttribute : Attribute

```

### Constructors

#### SitecoreRouteFieldAttribute()

##### Declaration

```csharp
public SitecoreRouteFieldAttribute()

```

### Properties

#### BindingSource

##### Declaration

```csharp
public BindingSource BindingSource { get; }

```

##### Property Value

| Type | Description |
| --- | --- |
| Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource |  |

#### Name

Gets or sets the name of the field in the route field list to use for binding.

##### Declaration

```csharp
public string Name { get; set; }

```

##### Property Value

| Type | Description |
| --- | --- |
| System.String |  |

### Implements

Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata
