HierarchicalDataBoundControlAdapter.Control Property

Definition

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

C#
protected System.Web.UI.WebControls.HierarchicalDataBoundControl Control { get; }

Property Value

The HierarchicalDataBoundControl associated with the current instance of HierarchicalDataBoundControlAdapter.

Examples

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.

C#
protected new System.Web.UI.WebControls.TreeView Control
{
    get
    {
        return (System.Web.UI.WebControls.TreeView)base.Control;
    }
}

Remarks

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

Applies to

Produkt Wersje
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also