Table of Contents

Class SitecoreComponentFieldAttribute

Namespace
Sitecore.AspNetCore.SDK.RenderingEngine.Binding.Attributes
Assembly
Sitecore.AspNetCore.SDK.RenderingEngine.dll

Binds a Sitecore Component field.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Parameter)]
public class SitecoreComponentFieldAttribute : Attribute, IBindingSourceMetadata
Inheritance
SitecoreComponentFieldAttribute
Implements
Inherited Members

Properties

BindingSource

Gets the BindingSource.

public BindingSource BindingSource { get; }

Property Value

BindingSource

Remarks

The BindingSource is metadata which can be used to determine which data sources are valid for model binding of a property or parameter.

Name

Gets or sets the name of the field in the component field list to use for binding.

public string Name { get; set; }

Property Value

string