1. SitecoreContextPropertyAttribute

Class SitecoreContextPropertyAttribute

Version: 21.x

Binds a Sitecore Context property.

Inheritance
System.Object
SitecoreContextPropertyAttribute
Implements
Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata
Namespace: Sitecore.AspNet.RenderingEngine.Binding.Attributes
Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
public class SitecoreContextPropertyAttribute : Attribute

Constructors

SitecoreContextPropertyAttribute()

Declaration
public SitecoreContextPropertyAttribute()

Properties

BindingSource

Declaration
public BindingSource BindingSource { get; }
Property Value
TypeDescription
Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource

Name

Gets or sets the name of the context property to use for binding.

Declaration
public string Name { get; set; }
Property Value
TypeDescription
System.String

Implements

Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata
If you have suggestions for improving this article, let us know!