Partilhar via


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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

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.

See Also

Reference

SPNavigation Class

SPNavigation Members

Microsoft.SharePoint.Navigation Namespace

Microsoft.SharePoint.Navigation.SPNavigationNode