SPWebPartManager.OnWebPartDeleting Method
SharePoint 2010
Handles the WebPartDeleting event.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online
Parameters
- eventArgs
- Type: System.Web.UI.WebControls.WebParts.WebPartCancelEventArgs
The data for the event.
This override is called when the process of deleting a control has begun. If the deleting process is successful, this event is followed by the WebPartDeleted event.