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.
Adds an SPNavigationNode object as the first node in the collection.
Namespace: Microsoft.SharePoint.Navigation
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Function AddAsFirst ( _
node As SPNavigationNode _
) As SPNavigationNode
'Usage
Dim instance As SPNavigationNodeCollection
Dim node As SPNavigationNode
Dim returnValue As SPNavigationNode
returnValue = instance.AddAsFirst(node)
public SPNavigationNode AddAsFirst(
SPNavigationNode node
)
Parameters
node
Type: Microsoft.SharePoint.Navigation.SPNavigationNodeSpecifies 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.
Remarks
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).
See Also
Reference
SPNavigationNodeCollection Class
SPNavigationNodeCollection Members
Microsoft.SharePoint.Navigation Namespace