HierarchicalDataBoundControlAdapter.Control Property

 

Retrieves a strongly typed reference to the HierarchicalDataBoundControl control associated with this HierarchicalDataBoundControlAdapter object.

Namespace:   System.Web.UI.WebControls.Adapters
Assembly:  System.Web (in System.Web.dll)

Protected ReadOnly Property Control As HierarchicalDataBoundControl

The Control property provides access to the corresponding control, including its properties and methods.

The following code example demonstrates how to override the Control property to retrieve a strongly typed TreeView control. This code example is part of a larger example provided for the HierarchicalDataBoundControlAdapter class.

Protected Overloads ReadOnly Property Control() As _
    System.Web.UI.WebControls.TreeView

    Get
        Return CType( _
            MyBase.Control, _
            System.Web.UI.WebControls.TreeView)
    End Get
End Property

.NET Framework
Available since 2.0
Return to top
Show: