This topic has not yet been rated - Rate this topic

SPWebPartManager.OnWebPartDeleting Method

SharePoint 2010

Handles the WebPartDeleting event.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online
protected override void OnWebPartDeleting(
	WebPartCancelEventArgs eventArgs
)

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.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ