System.Web.SiteMapNode.Roles Property

Gets or sets a collection of roles that are associated with the System.Web.SiteMapNode object, used during security trimming.

Syntax

public IList Roles { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If security trimming is enabled, a site map provider builds a node tree of nodes that the current user is able to view, based in part on whether the current user's assigned role is included in the SiteMapNode.Roles collection. URL authorization and file authorization are also used to determine whether a user has the rights to access a System.Web.SiteMapNode object. For more information on authorization, see ASP.NET Authorization.

You can use the SiteMapNode.#ctor(SiteMapProvider, string, string, string, string, IList, System.Collections.Specialized.NameValueCollection, System.Collections.Specialized.NameValueCollection) constructor to supply a list of roles to the System.Web.SiteMapNode object when it is first created.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0