WebControlAdapter.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.
Gets a reference to the Web control to which this control adapter is attached.
protected:
property System::Web::UI::WebControls::WebControl ^ Control { System::Web::UI::WebControls::WebControl ^ get(); };
protected System.Web.UI.WebControls.WebControl Control { get; }
member this.Control : System.Web.UI.WebControls.WebControl
Protected ReadOnly Property Control As WebControl
Property Value
The WebControl to which this WebControlAdapter is attached.
Remarks
When a WebControlAdapter object is attached to a WebControl object, the .NET Framework calls on the adapter life-cycle methods instead of the control methods. For more information, see ControlAdapter.
Notes to Inheritors
When you inherit from the WebControlAdapter class, at a minimum, you should implement a Control
property to return a strongly-typed instance of the control.