Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Moves the navigation node to the specified node collection as the last node in the collection hierarchy.
Namespace: Microsoft.SharePoint.Navigation
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Sub MoveToLast ( _
collection As SPNavigationNodeCollection _
)
'Usage
Dim instance As SPNavigationNode
Dim collection As SPNavigationNodeCollection
instance.MoveToLast(collection)
public void MoveToLast(
SPNavigationNodeCollection collection
)
Parameters
collection
Type: Microsoft.SharePoint.Navigation.SPNavigationNodeCollectionThe node collection (SPNavigationNodeCollection) to which the navigation node moves.
Exceptions
Exception | Condition |
---|---|
SPException | If the website inherits navigation. -or- The parent node of the collection is the top in the hierarchical navigation structure. |
Remarks
When moving nodes, the changes occur immediately. Calling the Update method is not necessary.