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.

protected public:
 abstract System::Web::SiteMapNode ^ GetRootNodeCore();
protected internal abstract System.Web.SiteMapNode GetRootNodeCore ();
abstract member GetRootNodeCore : unit -> System.Web.SiteMapNode
Protected Friend MustOverride Function GetRootNodeCore () As SiteMapNode

Returns

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

Examples

protected override SiteMapNode GetRootNodeCore()
{
  return RootNode;
}
Protected Overrides Function GetRootNodeCore() As SiteMapNode
  Return RootNode
End Function ' GetRootNodeCore()

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

See also