Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SPNavigationNodeCollection.AddAsFirst method

Adds an SPNavigationNode object as the first node in the collection.

Namespace:  Microsoft.SharePoint.Navigation
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public SPNavigationNode AddAsFirst(
	SPNavigationNode node
)

Parameters

node
Type: Microsoft.SharePoint.Navigation.SPNavigationNode

Specifies the node object (SPNavigationNode) to add to the collection.

Return value

Type: Microsoft.SharePoint.Navigation.SPNavigationNode
The 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 a null reference (Nothing in Visual Basic).

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.