HierarchicalDataBoundControlAdapter.Control Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om