System.Web.UI.HierarchicalDataSourceControl.GetHierarchicalView Method

Gets the view helper object for the System.Web.UI.IHierarchicalDataSource interface for the specified path.

Syntax

protected abstract HierarchicalDataSourceView GetHierarchicalView (string viewPath)

Parameters

viewPath
The hierarchical path of the view to retrieve.

Returns

A System.Web.UI.HierarchicalDataSourceView that represents a single view of the data at the hierarchical level identified by the viewPath parameter.

Remarks

This HierarchicalDataSourceControl.GetHierarchicalView(string) method provides the default implementation for the System.Web.UI.HierarchicalDataSourceControl class, which simply returns null. Classes that derive from the System.Web.UI.HierarchicalDataSourceControl class override this method and provide an implementation to return a strongly typed view that derives from System.Web.UI.HierarchicalDataSourceView.

Requirements

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