Represents a hierarchical collection that can be enumerated with an IEnumerator interface. Collections that implement the System.Web.UI.IHierarchicalEnumerable interface are used by ASP.NET site navigation and data source controls.

See Also: IHierarchicalEnumerable Members


public interface IHierarchicalEnumerable : IEnumerable


The System.Web.UI.IHierarchicalEnumerable interface extends the IEnumerable interface and exposes IHierarchicalEnumerable.GetHierarchyData(object), which is a method used to retrieve an System.Web.UI.IHierarchyData object from an enumerated item, in addition to the IEnumerable.GetEnumerator method.

Typically, clients that use System.Web.UI.IHierarchicalEnumerable collections retrieve an IEnumerator object by calling the IEnumerable.GetEnumerator method, then iterate through the enumeration and call the IHierarchicalEnumerable.GetHierarchyData(object) on each enumerated item to retrieve an System.Web.UI.IHierarchyData object.


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