---
title: "Class SitecoreComponentFieldsAttribute"
slug: "sitecore.aspnet.renderingengine.binding.attributes.sitecorecomponentfieldsattribute"
abstract: ""
---
# Class SitecoreComponentFieldsAttribute

Binds all fields for 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).

## Inheritance

System.Object

SitecoreComponentFieldsAttribute

### Implements

Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata

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

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

##### Syntax

```csharp
public class SitecoreComponentFieldsAttribute : Attribute

```

### Constructors

#### SitecoreComponentFieldsAttribute()

##### Declaration

```csharp
public SitecoreComponentFieldsAttribute()

```

### Properties

#### BindingSource

##### Declaration

```csharp
public BindingSource BindingSource { get; }

```

##### Property Value

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

### Implements

Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata
