SPWebPartManager.OnWebPartDeleted Method
Handles the WebPartDeleted event.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online
Syntax
'Declaration
Protected Overrides Sub OnWebPartDeleted ( _
eventArgs As WebPartEventArgs _
)
'Usage
Dim eventArgs As WebPartEventArgs
Me.OnWebPartDeleted(eventArgs)
protected override void OnWebPartDeleted(
WebPartEventArgs eventArgs
)
Parameters
eventArgs
Type: System.Web.UI.WebControls.WebParts.WebPartEventArgsThe data for the event.
Remarks
The override is called after a WebPart control has been permanently deleted from a page.