HtmlControlDesigner.OnBehaviorDetaching 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
The recommended alternative is ControlDesigner.Tag. http://go.microsoft.com/fwlink/?linkid=14202
当某个行为与该元素取消关联时被调用。
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 ()
- 属性
注解
备注
OnBehaviorDetaching方法已过时。 使用 SetAttribute GetAttribute 属性上的和方法 Tag 可将属性映射到样式。 使用 GetDesignTimeCssAttributes 类的方法在 ContainerControlDesigner 设计时设置控件的样式。 重写 Dispose 控件设计器的方法,以便在发布设计器对象之前执行操作。
继承者说明
在从设计器分离行为时,可以重写和实现 M:System.Web.UI.Design.HtmlControlDesigner OnBehaviorDetaching 方法,以执行附加处理。