SPNavigationNode.ParentId property

Gets an integer identifier of the parent node (Parent) in the hierarchy.

Namespace:  Microsoft.SharePoint.Navigation
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public int ParentId { get; }

Property value

Type: System.Int32
The Id property of the parent node.

This property cannot be directly set but is provided internally. The value returned can be used to retrieve the parent node by calling the SPNavigation.GetNodeById(Int32) method.