New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Definition

Namespace:Kendo.Mvc

Assembly:Kendo.Mvc.dll

Syntax:

C#
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, Inherited = true, AllowMultiple = true)]
public class PopulateSiteMapAttribute : FilterAttribute, IResultFilter

Inheritance: objectPopulateSiteMapAttribute

Implements: IResultFilter

Constructors

Initializes a new instance of the PopulateSiteMapAttribute class.

C#
public PopulateSiteMapAttribute()

Initializes a new instance of the PopulateSiteMapAttribute class.

C#
public PopulateSiteMapAttribute(SiteMapDictionary siteMaps)
Parameters:siteMapsSiteMapDictionary

The site maps.

Properties

Gets or sets the default view data key.

C#
public static string DefaultViewDataKey { get; set; }
Property Value:

The default view data key.

Gets or sets the name of the site map.

C#
public string SiteMapName { get; set; }
Property Value:

The name of the site map.

Gets or sets the site maps.

C#
public SiteMapDictionary SiteMaps { get; }
Property Value:

The site maps.

Gets or sets the view data key.

C#
public string ViewDataKey { get; set; }
Property Value:

The view data key.

Methods

Called after an action result executes.

C#
public void OnResultExecuted(ResultExecutedContext filterContext)
Parameters:filterContextResultExecutedContext

The filter context.

Called before an action result executes.

C#
public virtual void OnResultExecuting(ResultExecutingContext filterContext)
Parameters:filterContextResultExecutingContext

The filter context.