Skip to main content
Tab

ASPxSiteMapDataSource.EnableRoles Property

Gets or sets a value indicating whether the ASP.NET role management feature is enabled.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

[DefaultValue(false)]
public bool EnableRoles { get; set; }

Property Value

Type Default Description
Boolean false

true if the ASP.NET role management feature is enabled; otherwise, false.

Remarks

Use the EnableRoles property to enable support for ASP.NET role management within the ASPxSiteMapDataSource control.

If the EnableRoles property is set to true and security trimming is enabled, the ASPxSiteMapDataSource control filters nodes in the site map file (which is specified via the ASPxSiteMapDataSource.SiteMapFileName property or the ASPxSiteMapDataSource.LoadFromFile method), based upon the current user’s assigned role. This functionality is in effect if nodes of the site map file are associated with a collection of roles.

See Also