SiteMapProvider.RootNode Property
.NET Framework 2.0
Note: This property is new in the .NET Framework version 2.0.
Gets the root SiteMapNode object of the site map data that the current provider represents.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The default implementation calls the abstract GetRootNodeCore method.
Notes to Inheritors When overriding the RootNode property in a derived class, be sure that the implementation does not navigate the provider hierarchy, if one exists, to find the absolute root node of the site.
The following code example demonstrates how to implement the RootNode property in a class that implements the abstract SiteMapProvider class.
This code example is part of a larger example provided for the SiteMapProvider class.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Community Additions
ADD
Show: