Class SitecoreComponentPropertyAttribute
Version: 21.x
Binds a Sitecore Component property.
Inheritance
System.Object
SitecoreComponentPropertyAttribute
Implements
Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata
Namespace: Sitecore.AspNet.RenderingEngine.Binding
Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
RequestResponse
public class SitecoreComponentPropertyAttribute : AttributeConstructors
SitecoreComponentPropertyAttribute()
Declaration
RequestResponse
public SitecoreComponentPropertyAttribute()Properties
BindingSource
Declaration
RequestResponse
public BindingSource BindingSource { get; }Property Value
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Mvc.ModelBinding.BindingSource |
Name
Gets or sets the component property name to use for binding.
Declaration
RequestResponse
public string Name { get; set; }Property Value
| Type | Description |
|---|---|
| System.String |
Implements
Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata