Control.Disposed Control.Disposed Control.Disposed Control.Disposed Event

定义

当从内存释放服务器控件时发生,这是请求 ASP.NET 页时服务器控件生存期的最后阶段。Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.

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

实现

注解

需要大量处理器时间的资源(例如数据库连接)应随此事件一起发布。Resources that require significant processor time, such as database connections, should be released with this event.

适用于

另请参阅