SPNavigation.GetNodeByUrl method
Gets a navigation node object (SPNavigationNode) by using the URL of the node.
Namespace: Microsoft.SharePoint.Navigation
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function GetNodeByUrl ( _
url As String _
) As SPNavigationNode
'Usage
Dim instance As SPNavigation
Dim url As String
Dim returnValue As SPNavigationNode
returnValue = instance.GetNodeByUrl(url)
public SPNavigationNode GetNodeByUrl(
string url
)
Parameters
url
Type: System.StringThe URL of the node corresponding to the SPNavigationNode object.
Return value
Type: Microsoft.SharePoint.Navigation.SPNavigationNode
Returns an SPNavigationNode object.
Remarks
If more than one node has the same URL, this method returns the first node.