Navigation.TopNavigationBar property

Gets a value that collects navigation nodes corresponding to links in the top navigation bar of the site.

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

Syntax

'Declaration
Public ReadOnly Property TopNavigationBar As NavigationNodeCollection
    Get
'Usage
Dim instance As Navigation
Dim value As NavigationNodeCollection

value = instance.TopNavigationBar
public NavigationNodeCollection TopNavigationBar { get; }

Property value

Type: Microsoft.SharePoint.Client.NavigationNodeCollection
Returns a NavigationNodeCollection.instance which collects navigation nodes corresponding to links in the top navigation bar of the site.

Remarks

It must be a null reference (Nothing in Visual Basic) if the top navigation bar is defined in a different site or if the top navigation bar node collection has been deleted.

See also

Reference

Navigation class

Navigation members

Microsoft.SharePoint.Client namespace