SPNavigationNodeCollection class
Provides a strongly typed collection of SPNavigationNode objects.
Microsoft.SharePoint.Administration.SPAutoSerializingObject
Microsoft.SharePoint.SPBaseCollection
Microsoft.SharePoint.Navigation.SPNavigationNodeCollection
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[SubsetCallableTypeAttribute] [ClientCallableTypeAttribute(Name = "NavigationNodeCollection", ServerTypeId = "{2d818ed7-8fef-4a1c-bceb-a9404dfa482f}", CollectionChildItemType = typeof(SPNavigationNode), CollectionIndexerMethodClientName = "GetById", CollectionCreateEntityMethodClientName = "Create", SampleUrl = "{apiroot}/web/navigation/quicklaunch")] public sealed class SPNavigationNodeCollection : SPBaseCollection
An instance of this class is returned by the GlobalNodes, QuickLaunch, and TopNavigationBar properties of an SPNavigation object and also by the Children property of an SPNavigationNode object.
In a hierarchical navigation structure such as QuickLaunch, the tree is rooted on a single SPNavigationNode object. This object has a Children property that returns an SPNavigationNodeCollection object with navigation nodes one level down from the root. Each of these nodes has a Children property that can contain a collection of nodes for another level down the hierarchy.
You can get the parent node for a collection by getting the value of the collection's Parent property. You can return to the collection by getting the value of the parent node's Children property.