---
title: "Class SitecoreComponentPropertyAttribute"
slug: "sitecore.aspnet.renderingengine.binding.sitecorecomponentpropertyattribute"
abstract: ""
---
# Class SitecoreComponentPropertyAttribute

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

## Inheritance

System.Object

SitecoreComponentPropertyAttribute

### Implements

Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata

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

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

##### Syntax

```csharp
public class SitecoreComponentPropertyAttribute : Attribute

```

### Constructors

#### SitecoreComponentPropertyAttribute()

##### Declaration

```csharp
public SitecoreComponentPropertyAttribute()

```

### Properties

#### BindingSource

##### Declaration

```csharp
public BindingSource BindingSource { get; }

```

##### Property Value

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

#### Name

Gets or sets the component property name to use for binding.

##### Declaration

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

```

##### Property Value

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

### Implements

Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata
