Class SitecoreRoutePropertyAttribute

Version: 21.x

Binds a Sitecore Route property.

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

Constructors

SitecoreRoutePropertyAttribute()

Declaration
RequestResponse
public SitecoreRoutePropertyAttribute()

Properties

BindingSource

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

Name

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

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

Implements

Microsoft.AspNetCore.Mvc.ModelBinding.IBindingSourceMetadata

Do you have some feedback for us?

If you have suggestions for improving this article,