Table of Contents

Class SitecoreRoutePropertyAttribute

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

Binds a Sitecore Route property.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Parameter)]
public class SitecoreRoutePropertyAttribute : Attribute, IBindingSourceMetadata
Inheritance
SitecoreRoutePropertyAttribute
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 route property to use for binding.

public string Name { get; set; }

Property Value

string