SPNavigationNodeCollection.AddAsFirst method
SharePoint 2013
Adds an SPNavigationNode object as the first node in the collection.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Parameters
- node
- Type: Microsoft.SharePoint.Navigation.SPNavigationNode
Specifies the node object (SPNavigationNode) to add to the collection.
Return value
Type: Microsoft.SharePoint.Navigation.SPNavigationNodeThe navigation node that was added, now completely initialized.
An SPNavigationNode object is not completely initialized until it has been added to a collection. If the object is not yet a member of a collection, read-only properties such as Id and ParentId return null.