Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPNavigation.TopNavigationBar property

Gets an SPNavigationNodeCollection object that contains the nodes in the top link bar for the website.

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

public SPNavigationNodeCollection TopNavigationBar { get; }

Property value

Type: Microsoft.SharePoint.Navigation.SPNavigationNodeCollection
Returns a collection of SPNavigationNode objects that represent the top link bar. If the top link bar is inherited by the current website, this property returns a null reference (Nothing in Visual Basic).

This property returns null when the UseShared property returns true.

Show:
© 2015 Microsoft