Control.Unload 事件

定義

發生於伺服器控制項從記憶體卸載時。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.

適用於

另請參閱