Читати англійською Редагувати

Поділитися через


HtmlControlDesigner.OnBehaviorDetaching Method

Definition

Caution

The recommended alternative is ControlDesigner.Tag. http://go.microsoft.com/fwlink/?linkid=14202

Called when a behavior disassociates from the element.

C#
protected virtual void OnBehaviorDetaching();
C#
[System.Obsolete("The recommended alternative is ControlDesigner.Tag. http://go.microsoft.com/fwlink/?linkid=14202")]
protected virtual void OnBehaviorDetaching();
Attributes

Remarks

Примітка

The OnBehaviorDetaching method is obsolete. Use the SetAttribute and GetAttribute methods on the Tag property to map properties to styles. Use the GetDesignTimeCssAttributes method on the ContainerControlDesigner class to set styles for the control at design time. Override the Dispose method for the control designer to perform actions before the designer object is released.

Notes to Inheritors

The M:System.Web.UI.Design.HtmlControlDesigner.OnBehaviorDetaching method can be overridden and implemented to perform additional processing when a behavior is detached from the designer.

Applies to

Продукт Версії (Застаріло.)
.NET Framework 1.1 (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