SPNavigation.TopNavigationBar property
SharePoint 2013
Gets an SPNavigationNodeCollection object that contains the nodes in the top link bar for the website.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Property value
Type: Microsoft.SharePoint.Navigation.SPNavigationNodeCollectionReturns 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 null.