HtmlControlDesigner.OnBehaviorDetaching 方法

定義

警告

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使用 屬性上的 TagGetAttribute 方法,將屬性對應至樣式。 GetDesignTimeCssAttributes使用 類別上的 ContainerControlDesigner 方法,在設計階段設定控制項的樣式。 Dispose覆寫控制項設計工具的 方法,以在釋放設計工具物件之前執行動作。

給繼承者的注意事項

M:System.Web.UI.Design.HtmlControlDesigner.OnBehaviorDetaching 方法可以覆寫並實作,以在行為與設計工具中斷連結時執行其他處理。

適用於

另請參閱