SPWebEventReceiver.SiteDeleting method

Occurs when a site collection is being deleted.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

public virtual void SiteDeleting(
    SPWebEventProperties properties
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

properties is null .

Remarks

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.

See also

Reference

SPWebEventReceiver class

SPWebEventReceiver members

Microsoft.SharePoint namespace