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

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.

See Also

Reference

SPWebPartManager Class

SPWebPartManager Members

Microsoft.SharePoint.WebPartPages Namespace