SiteMapProvider.GetRootNodeCore Method

Definition

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

C#
protected internal abstract System.Web.SiteMapNode GetRootNodeCore();

Returns

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

Examples

C#
protected override SiteMapNode GetRootNodeCore()
{
  return RootNode;
}

Remarks

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.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also