WebPartManager.OnWebPartDeleted(WebPartEventArgs) 方法

定义

引发 WebPartDeleted 事件,该事件在从页中永久删除 WebPart 控件之后发生。

protected:
 virtual void OnWebPartDeleted(System::Web::UI::WebControls::WebParts::WebPartEventArgs ^ e);
protected virtual void OnWebPartDeleted (System.Web.UI.WebControls.WebParts.WebPartEventArgs e);
abstract member OnWebPartDeleted : System.Web.UI.WebControls.WebParts.WebPartEventArgs -> unit
override this.OnWebPartDeleted : System.Web.UI.WebControls.WebParts.WebPartEventArgs -> unit
Protected Overridable Sub OnWebPartDeleted (e As WebPartEventArgs)

参数

e
WebPartEventArgs

包含事件数据的 WebPartEventArgs

注解

OnWebPartDeleted 删除 WebPart 控件 (或其他从页面添加到 WebPartZoneBase 区域) 的服务器控件的过程中,调用 方法。

页面开发人员可以通过将 属性添加到 OnWebPartDeleted<asp:webpartmanager> 元素并将自定义方法名称分配给属性来为 WebPartDeleted 事件创建自定义处理程序。

适用于

另请参阅