Using the SiteMapNode Class

All pages and folders in a Site Map are represented by instances of the SiteMapNode class. The SiteMapNode class contains the following properties:

ChildNodes Returns the child nodes of the current node.

Description Returns the description of the current node.

HasChildNodes Returns True when the current node has child nodes.

Item Returns a custom attribute (or resource string).

Key Returns a unique identifier for the current node.

NextSibling Returns the next sibling of the current node.

ParentNode Returns the parent node of the current node.

PreviousSibling Returns the previous sibling of the current node.

Provider Returns the SiteMapProvider associated with the current node.

ReadOnly ...

Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.