Share via


SPNavigation Members

Include Protected Members
Include Inherited Members

Serves as a wrapper class for navigation-related operations. The SPNavigation object is available as a property value (SPWeb.Navigation) on the SPWeb object.

The SPNavigation type exposes the following members.

Properties

  Name Description
Public property GlobalNodes Gets the top-level navigation nodes for the current context.
Public property Home Gets a node as an SPNavigationNode object that represents the site home page.
Public property QuickLaunch Gets an Microsoft.SharePoint.Navigation.SPNavigationNodeCollection object that contains the nodes in the Quick Launch area of the site.
Public property TopNavigationBar Gets an SPNavigationNodeCollection object that contains the nodes in the top link bar for the website.
Public property UseShared Gets or sets a Boolean value specifying whether the Web site inherits navigation.
Public property Web Gets an SPWeb object representing the Web site.

Top

Methods

  Name Description
Public method AddToQuickLaunch Adds a node to the Quick Launch under the specified heading. If the specified heading does not exist, it is created.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetNodeById Gets the navigation node (SPNavigationNode) by using an integer identifier.
Public method GetNodeByUrl Gets a navigation node object (SPNavigationNode) by using the URL of the node.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

See Also

Reference

SPNavigation Class

Microsoft.SharePoint.Navigation Namespace