SPWebPartManager.OnWebPartDeleting Method
Handles the WebPartDeleting 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 OnWebPartDeleting ( _
eventArgs As WebPartCancelEventArgs _
)
'Usage
Dim eventArgs As WebPartCancelEventArgs
Me.OnWebPartDeleting(eventArgs)
protected override void OnWebPartDeleting(
WebPartCancelEventArgs eventArgs
)
Parameters
eventArgs
Type: System.Web.UI.WebControls.WebParts.WebPartCancelEventArgsThe data for the event.
Remarks
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.