Skip to main content
A newer version of this page is available. .
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.v20.2.dll

NuGet Package: DevExpress.Web

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.

For more information about how role-based behavior can be implemented using the ASPxSiteMapDataSource control, refer to the following Code Central example: E1240.

See Also