Control Property
Collapse the table of content
Expand the table of content

WebControlAdapter.Control Property

Note: This property is new in the .NET Framework version 2.0.

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

Namespace: System.Web.UI.WebControls.Adapters
Assembly: System.Web (in system.web.dll)

protected WebControl Control { get; }
/** @property */
protected WebControl get_Control ()

protected function get Control () : WebControl

Property Value

The WebControl to which this WebControlAdapter is attached.

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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

© 2016 Microsoft