HtmlControlDesigner.OnBehaviorDetaching Método

Definição

Cuidado

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

Chamado quando um comportamento é desassociado do elemento.Called when a behavior disassociates from the element.

protected:
 virtual void OnBehaviorDetaching();
protected virtual void OnBehaviorDetaching ();
[System.Obsolete("The recommended alternative is ControlDesigner.Tag. http://go.microsoft.com/fwlink/?linkid=14202")]
protected virtual void OnBehaviorDetaching ();
abstract member OnBehaviorDetaching : unit -> unit
override this.OnBehaviorDetaching : unit -> unit
[<System.Obsolete("The recommended alternative is ControlDesigner.Tag. http://go.microsoft.com/fwlink/?linkid=14202")>]
abstract member OnBehaviorDetaching : unit -> unit
override this.OnBehaviorDetaching : unit -> unit
Protected Overridable Sub OnBehaviorDetaching ()
Atributos

Comentários

Observação

O OnBehaviorDetaching método está obsoleto.The OnBehaviorDetaching method is obsolete. Use os SetAttribute GetAttribute métodos e na Tag propriedade para mapear Propriedades para estilos.Use the SetAttribute and GetAttribute methods on the Tag property to map properties to styles. Use o GetDesignTimeCssAttributes método na ContainerControlDesigner classe para definir estilos para o controle em tempo de design.Use the GetDesignTimeCssAttributes method on the ContainerControlDesigner class to set styles for the control at design time. Substitua o Dispose método para que o designer de controle execute ações antes de o objeto designer ser liberado.Override the Dispose method for the control designer to perform actions before the designer object is released.

Notas aos Herdeiros

O método M:System.Web.UI.Design.HtmlControlDesigner. OnBehaviorDetaching pode ser substituído e implementado para executar processamento adicional quando um comportamento é desanexado do designer.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.

Aplica-se a

Confira também