共用方式為


SPNavigationNode Class

This object represents the URL to a specific navigation node in an arbitrary hierarchy and provides methods for manipulating the position of the node and properties for setting node characteristics.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Navigation.SPNavigationNode

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

Syntax

<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPNavigationNode

Dim instance As SPNavigationNode
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPNavigationNode

Remarks

Unlike the SPNavigationNodeCollection class, the SPNavigationNode class requiresyou to call the Update method to cause property changes to existing nodes to be saved to the database. Moves, however, occur immediately.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPNavigationNode Members

Microsoft.SharePoint.Navigation Namespace

Microsoft.SharePoint.Navigation.SPNavigation

Microsoft.SharePoint.Navigation.SPNavigationNodeCollection