WebControlAdapter.Control Property

Definition

Gets a reference to the Web control to which this control adapter is attached.

protected System.Web.UI.WebControls.WebControl Control { get; }

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

製品 バージョン
.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