Share via


RootNavigationNode Property

Returns a NavigationNode object that represents the abstract navigation root.

Remarks

You can use the RootNavigationNode property to determine the root navigation node. The RootNavigationNode property returns the NavigationNode object from which you can access all other navigation nodes in a web. The RootNavigationNode object is created by default when you create a web and provides the basis for the navigation structure, which is accessed through the Children collection. The first child node of the navigation structure is the home page of the Web site.

Example

The following example adds a global navigation node to the right of the home navigation node.

  Private Sub AddNode()
	Dim myRNode As NavigationNode
	Dim myPage As String

	Set myRNode = ActiveWeb.RootNavigationNode
	myPage = "http://myServer/myWeb/search.htm"

	Call myRNode.Children.Add(myPage, "Search", _
    		fpStructRightmostChild)
	ActiveWeb.ApplyNavigationStructure
End Sub