編集

次の方法で共有


HierarchicalDataBoundControlAdapter.Control Property

Definition

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

protected:
 property System::Web::UI::WebControls::HierarchicalDataBoundControl ^ Control { System::Web::UI::WebControls::HierarchicalDataBoundControl ^ get(); };
protected System.Web.UI.WebControls.HierarchicalDataBoundControl Control { get; }
member this.Control : System.Web.UI.WebControls.HierarchicalDataBoundControl
Protected ReadOnly Property Control As HierarchicalDataBoundControl

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.

protected new System.Web.UI.WebControls.TreeView Control
{
    get
    {
        return (System.Web.UI.WebControls.TreeView)base.Control;
    }
}
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

Remarks

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

Applies to

See also