SiteMapNode.RootNode Property

Note: This property is new in the .NET Framework version 2.0.

Gets the root node of the root provider in a site map provider hierarchy. If no provider hierarchy exists, the RootNode property gets the root node of the current provider.

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

public:
virtual property SiteMapNode^ RootNode {
	SiteMapNode^ get ();
}
/** @property */
public SiteMapNode get_RootNode ()

public function get RootNode () : SiteMapNode

Property Value

A SiteMapNode that represents the root node of the site navigation structure.

Exception typeCondition

InvalidOperationException

The root node cannot be retrieved from the root provider.

The SiteMapNode class relies on the site map provider with which it is associated to track its relationships to other nodes in the site map. The RootNode property calls the RootNode property of the root provider (the RootProvider property) to retrieve the root node.

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.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: