---
title: "Class SitecoreRoutePropertyAttribute"
slug: "sitecore.aspnet.renderingengine.binding.attributes.sitecoreroutepropertyattribute"
abstract: ""
---
# Class SitecoreRoutePropertyAttribute

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) property.

## Inheritance

System.Object

SitecoreRoutePropertyAttribute

### Implements

Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata

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

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

##### Syntax

```csharp
public class SitecoreRoutePropertyAttribute : Attribute

```

### Constructors

#### SitecoreRoutePropertyAttribute()

##### Declaration

```csharp
public SitecoreRoutePropertyAttribute()

```

### 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 route property to use for binding.

##### Declaration

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

```

##### Property Value

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

### Implements

Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata
