This documentation is archived and is not being maintained.

SiteMapProvider.GetRootNodeCore Method

When overridden in a derived class, retrieves the root node of all the nodes that are currently managed by the current provider.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

protected internal abstract SiteMapNode GetRootNodeCore ()
protected abstract SiteMapNode GetRootNodeCore ()
protected internal abstract function GetRootNodeCore () : SiteMapNode
Not applicable.

Return Value

A SiteMapNode that represents the root node of the set of nodes that the current provider manages.

The GetRootNodeCore method enables a parent provider in a provider hierarchy to obtain a SiteMapNode object that acts as a frame of reference for building the provider hierarchy and the larger site map node hierarchy that is the sum of the site map data that each provider manages.

protected override SiteMapNode GetRootNodeCore()
{
  return RootNode;
}

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: