편집

다음을 통해 공유


WebControlAdapter.Control Property

Definition

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.

Applies to

See also