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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
<ClientCallableAttribute> _
Public ReadOnly Property TopNavigationBar As SPNavigationNodeCollection
Get
'Usage
Dim instance As SPNavigation
Dim value As SPNavigationNodeCollection
value = instance.TopNavigationBar
[ClientCallableAttribute]
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).
Remarks
This property returns null when the UseShared property returns true.
See Also
Reference
Microsoft.SharePoint.Navigation Namespace