---
title: "クラスSitecoreContextPropertyAttribute"
slug: "sitecore.aspnet.renderingengine.binding.attributes.sitecorecontextpropertyattribute"
abstract: ""
---
# クラスSitecoreContextPropertyAttribute

Sitecoreの [コンテキスト](https://doc.sitecore.com/xp/ja/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.model.context.html) プロパティをバインドします。

## 相続

System.Object

SitecoreContextPropertyAttribute

### 実装

Microsoft。AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata

#### **名前空間**:Sitecore。AspNet.RenderingEngine.Binding.Attributes

##### **アセンブリ**:Sitecore。AspNet.RenderingEngine.dll

##### 構文論

public class SitecoreContextPropertyAttribute : Attribute

### コンストラクター

#### SitecoreContextPropertyAttribute()

##### 宣言

public SitecoreContextPropertyAttribute()

### 性質

#### バインディングソース

##### 宣言

public BindingSource BindingSource { get; }

##### 不動産価値

種類

概要

Microsoft。AspNetCore.Mvc.ModelBinding.BindingSource

#### 名称

コンテキストプロパティの名前をバインディングに使うか設定します。

##### 宣言

public string Name { get; set; }

##### 不動産価値

種類

概要

System.String

### 実装

Microsoft。AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata