Share via


SPNavigationNode.Parent Property

Gets a navigation node object instance (SPNavigationNode) representing the parent node in the hierarchy.

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

Syntax

'Declaration
Public ReadOnly Property Parent As SPNavigationNode
    Get
'Usage
Dim instance As SPNavigationNode
Dim value As SPNavigationNode

value = instance.Parent
public SPNavigationNode Parent { get; }

Property Value

Type: Microsoft.SharePoint.Navigation.SPNavigationNode
The node that is the parent of the current node.

Remarks

This property cannot be directly set, but is provided internally. The current node is contained within the collection returned by the parent node's Children property.

See Also

Reference

SPNavigationNode Class

SPNavigationNode Members

Microsoft.SharePoint.Navigation Namespace

Children

ParentId