Condividi tramite


SPNavigationNode Members

Include Protected Members
Include Inherited Members

Represents a node in a hierarchical navigation structure for a Microsoft SharePoint Foundation Web site.

The SPNavigationNode type exposes the following members.

Constructors

  Name Description
Public method SPNavigationNode(String, String) Creates a new instance of the SPNavigationNode class that points to a location within the current site collection.
Public method SPNavigationNode(String, String, Boolean) Creates a new instance of the SPNavigationNode class and specifies the display name, locations, and specifies whether the new node is internal or external.

Top

Properties

  Name Description
Public property Children Gets child nodes of the navigation node as an SPNavigationNodeCollection object.
Public property Id Gets an integer identifier for the naviagation node.
Public property IsExternal Gets a Boolean value that specifies whether the navigation node URL corresponds to a page outside the site collection.
Public property IsVisible Gets or sets a Boolean value that specifies whether the navigation node is visible.
Public property LastModified Gets or sets a DateTime value specifying when the node object was last modified.
Public property Navigation Gets or sets the parent navigation object (SPNavigation).
Public property Parent Gets a navigation node object instance (SPNavigationNode) representing the parent node in the hierarchy.
Public property ParentId Gets an integer identifier of the parent node (Parent) in the hierarchy.
Public property Properties Gets a hash table that provides name/value pairs representing the node properties.
Public property TargetParentObjectType Gets an object that represents the SPObjectType of the parent of the file or folder being pointed to by the navigation node.
Public property TargetSecurityScopeId Gets a GUID that represents the ScopeId of the file or folder being pointed to by the navigation node.
Public property Title Gets or sets the string that is used as the anchor text for the node navigation link.
Public property TitleResource Gets an object that represents the SPUserResource that can be used to get or set translations for the navigation node title.
Public property Url Gets or sets the URL stored with the navigation node.

Top

Methods

  Name Description
Public method Delete Deletes the navigation node.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Move Moves the navigation node to the specified collection and to a position in the hierarchy following the specified (previousSibling) node.
Public method MoveToFirst Moves the navigation node to the specified node collection as the first node in the collection hierarchy.
Public method MoveToLast Moves the navigation node to the specified node collection as the last node in the collection hierarchy.
Public method ToString (Inherited from Object.)
Public method Update Updates property changes that have been made to the navigation node.

Top

See Also

Reference

SPNavigationNode Class

Microsoft.SharePoint.Navigation Namespace