SiteMapNodeItemType Enumeration
The SiteMapNodeItemType enumeration is used by the SiteMapPath control to identify the type of a SiteMapNodeItem node within a node hierarchy.
Assembly: System.Web (in System.Web.dll)
| Member name | Description | |
|---|---|---|
| Root | The top node of the site navigation hierarchy. There can be only one root node. | |
| Parent | A parent node of the currently viewed page in the site navigation path. A parent node is any node that is found between the root node and the current node in the navigation hierarchy. | |
| Current | The currently viewed page in the site navigation path. | |
| PathSeparator | A site map navigation path separator. The default separator for the SiteMapPath control is the ">" character. |
The SiteMapPath control manages its site navigation information as a collection of SiteMapNodeItem objects. SiteMapNodeItem objects represent functionally different types of SiteMapNode nodes. Accordingly, they are managed by the SiteMapPath control. The following list describes the types of nodes available:
One node that represent the currently viewed page.
One node that is the top node of the site navigation hierarchy.
Zero or more nodes between the top node and the current node (parent nodes).
Zero or more nodes that represent site navigation path separators.
Each node is data-bound to an underlying SiteMapNode, except nodes of the PathSeparator type.
The following code example demonstrates how to call the OnItemCreated method after creating a SiteMapNodeItem within the InitializeItem method. This code example is part of a larger code example provided for the SiteMapPath class.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.