Share via


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

Syntax

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

value = instance.ParentId
public int ParentId { get; }

Property Value

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

Remarks

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.

See Also

Reference

SPNavigationNode Class

SPNavigationNode Members

Microsoft.SharePoint.Navigation Namespace

Parent