Share via


ConsoleNode.ParentNode Property

Gets or sets the parent ConsoleNode of this ConsoleNode object.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Property ParentNode As ConsoleNode
    Get
    Set
'Usage
Dim instance As ConsoleNode
Dim value As ConsoleNode

value = instance.ParentNode

instance.ParentNode = value
public ConsoleNode ParentNode { get; set; }

Property Value

Type: Microsoft.SharePoint.Publishing.WebControls.ConsoleNode
The parent ConsoleNode, or a null reference (Nothing in Visual Basic) if this is the root.

Remarks

Other than the root ConsoleNode, every ConsoleNode must have a parent in the hierarchy. This property makes it easier to traverse the hierarchy both up and down.

See Also

Reference

ConsoleNode Class

ConsoleNode Members

Microsoft.SharePoint.Publishing.WebControls Namespace