System.Web.UI.IHierarchyData.GetParent Method

Gets an System.Web.UI.IHierarchyData object that represents the parent node of the current hierarchical node.

Syntax

public IHierarchyData GetParent ()

Returns

An System.Web.UI.IHierarchyData object that represents the parent node of the current hierarchical node.

Remarks

The System.Web.UI.IHierarchyData interface does not define a HasParent convenience property, so callers must check the return value of the IHierarchyData.GetParent method for null to determine whether the current System.Web.UI.IHierarchyData node is the root node of the hierarchical data structure to which the node belongs.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0