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.

适用于

另请参阅