HierarchicalDataSourceControl.GetHierarchicalView Method

Gets the view helper object for the IHierarchicalDataSource interface for the specified path.

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

protected:
virtual HierarchicalDataSourceView^ GetHierarchicalView (
	String^ viewPath
) abstract
protected abstract HierarchicalDataSourceView GetHierarchicalView (
	String viewPath
)
protected abstract function GetHierarchicalView (
	viewPath : String
) : HierarchicalDataSourceView
Not applicable.

Parameters

viewPath

The hierarchical path of the view to retrieve.

Return Value

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

This GetHierarchicalView method provides the default implementation for the HierarchicalDataSourceControl class, which simply returns a null reference (Nothing in Visual Basic). Classes that derive from the HierarchicalDataSourceControl class override this method and provide an implementation to return a strongly typed view that derives from HierarchicalDataSourceView.

The following code example demonstrates how to override the GetHierarchicalView method in a class that extends the HierarchicalDataSourceControl class to return a strongly typed HierarchicalDataSourceView object. This code example is part of a larger example provided for the HierarchicalDataSourceControl class.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: