SPNavigation.GetNodeById Method

Gets the navigation node (SPNavigationNode) by using an integer identifier.

Namespace:  Microsoft.SharePoint.Navigation
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Function GetNodeById ( _
    id As Integer _
) As SPNavigationNode
'Usage
Dim instance As SPNavigation
Dim id As Integer
Dim returnValue As SPNavigationNode

returnValue = instance.GetNodeById(id)
public SPNavigationNode GetNodeById(
    int id
)

Parameters

  • id
    Type: System.Int32

    Integer representing an identification number for the navigation node.

Return Value

Type: Microsoft.SharePoint.Navigation.SPNavigationNode
Returns an SPNavigationNode object.

See Also

Reference

SPNavigation Class

SPNavigation Members

Microsoft.SharePoint.Navigation Namespace

Microsoft.SharePoint.Navigation.SPNavigationNode