Control.Unload Control.Unload Control.Unload Control.Unload Event

定義

發生於伺服器控制項從記憶體卸載時。Occurs when the server control is unloaded from memory.

public:
 event EventHandler ^ Unload;
public event EventHandler Unload;
member this.Unload : EventHandler 
Public Custom Event Unload As EventHandler 

備註

伺服器控制項必須執行任何最後的清除,例如關閉檔案、 資料庫連線和捨棄這個階段的執行個體卸載之前控制項生命週期期間的物件。Server controls must perform any final clean-up, such as closing files, database connections and discarding objects, during this stage of the control lifecycle before the instance is unloaded.

適用於

另請參閱