Share via


HierarchyInfo.Parent Property

Definition

Gets the parent node.

public:
 property Microsoft::Web::Management::Client::HierarchyInfo ^ Parent { Microsoft::Web::Management::Client::HierarchyInfo ^ get(); };
public Microsoft.Web.Management.Client.HierarchyInfo Parent { get; }
member this.Parent : Microsoft.Web.Management.Client.HierarchyInfo
Public ReadOnly Property Parent As HierarchyInfo

Property Value

The HierarchyInfo object that is the parent of the current node.

Examples

The following example sends Parent information to the trace listener.

public void DebugParent()
{
    HierarchyInfo p = Parent;
    Trace.WriteLine("Parent Data: NodeType = " + p.NodeType +
                     " NodeTypeName = " + p.NodeTypeName);
}

Applies to