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
RequestResponse
public class SitecoreContextPropertyAttribute : AttributeConstructors
SitecoreContextPropertyAttribute()
Declaration
RequestResponse
public SitecoreContextPropertyAttribute()Properties
BindingSource
Declaration
RequestResponse
public BindingSource BindingSource { get; }Property Value
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource |
Name
Gets or sets the name of the context property to use for binding.
Declaration
RequestResponse
public string Name { get; set; }Property Value
| Type | Description |
|---|---|
| System.String |
Implements
Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata