Export (0) Print
Expand All

SPNavigation.TopNavigationBar Property

Windows SharePoint Services 3

Gets an Microsoft.SharePoint.Navigation.SPNavigationNodeCollection object that contains the nodes that correspond with links in the top navigation bar of the site.

Namespace:  Microsoft.SharePoint.Navigation
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPNavigationNodeCollection TopNavigationBar { get; }

Property Value

Type: Microsoft.SharePoint.Navigation.SPNavigationNodeCollection
Returns an Microsoft.SharePoint.Navigation.SPNavigationNodeCollection object. Returns a null reference (Nothing in Visual Basic) if the top navigation area is defined in a different site, or if the top navigation bar node collection has been deleted.

An exception is thrown if the user tries to set the node collection for a Web site that inherits navigation.

Setting a node collection takes effect immediately, and no call to the Update method is required.

Community Additions

ADD
Show:
© 2015 Microsoft