共用方式為


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

適用於

另請參閱