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.

适用于

另请参阅