SiteMapNode.RootNode Property

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

Not applicable.

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 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

Community Additions

ADD
Show: