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.Int32Integer representing an identification number for the navigation node.
Return Value
Type: Microsoft.SharePoint.Navigation.SPNavigationNode
Returns an SPNavigationNode object.