System.Web.SiteMapNode Class

Represents a node in the hierarchical site map structure such as that described by the System.Web.SiteMap class and classes that implement the abstract System.Web.SiteMapProvider class.

See Also: SiteMapNode Members

Syntax

public class SiteMapNode : ICloneable, System.Web.UI.IHierarchyData, System.Web.UI.INavigateUIData

Remarks

A System.Web.SiteMapNode object represents a Web site page in a site map structure. System.Web.SiteMapNode objects are loaded by the static System.Web.SiteMap class at run time using one or more site map providers to load site map data from persistent storage into memory. System.Web.SiteMapNode objects are wrapped by the System.Web.UI.WebControls.SiteMapNodeItem class for use by Web server controls, such as the System.Web.UI.WebControls.SiteMapPath control.

The System.Web.SiteMapNode class includes several properties that are used to describe a single page in a Web site, including properties that describe a page, such as the SiteMapNode.Url, SiteMapNode.Title, and SiteMapNode.Description properties. Whereas the SiteMapNode.Url property is used by the System.Web.XmlSiteMapProvider class, which is the default site map provider for ASP.NET, as a lookup key in the internal collections that the provider uses to track nodes, the System.Web.SiteMapNode class supports a basic SiteMapNode.Key property that can be used by site map providers to track nodes. Additionally, the SiteMapNode.Url property is used by navigation controls to render hyperlinks to pages within a navigation structure. The SiteMapNode.Title property is a friendly name for the System.Web.SiteMapNode, is often the same as the HTML title of a Web Form, and is used by navigation controls to render simple labels. Finally, a System.Collections.Specialized.NameValueCollection collection of additional SiteMapNode.Attributes attributes is available to site map providers that use System.Web.SiteMapNode objects, but require additional properties that are not available in the base System.Web.SiteMapNode class.

Requirements

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