Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPWebEventReceiver.SiteDeleting Method

Occurs when a site collection is being deleted.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public virtual void SiteDeleting(
	SPWebEventProperties properties
)

Parameters

properties
Type: Microsoft.SharePoint.SPWebEventProperties

An SPWebEventProperties object that represents properties of the event handler.

ExceptionCondition
ArgumentNullException

properties is null .

You should not use the property setting Status=CancelNoError to cancel an event, since doing so redirects the user to the noninformative "Delete Web" page.

Show:
© 2015 Microsoft