---
title: "Class SitecoreContextAttribute"
slug: "sitecore.aspnet.renderingengine.binding.attributes.sitecorecontextattribute"
abstract: ""
---
# Class SitecoreContextAttribute

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

## Inheritance

System.Object

SitecoreContextAttribute

### Implements

Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata

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

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

##### Syntax

```csharp
public class SitecoreContextAttribute : Attribute

```

### Constructors

#### SitecoreContextAttribute()

##### Declaration

```csharp
public SitecoreContextAttribute()

```

### Properties

#### BindingSource

##### Declaration

```csharp
public BindingSource BindingSource { get; }

```

##### Property Value

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

### Implements

Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata
