SPWebEventReceiver.SiteDeleted Method

Occurs after a site collection has been deleted.

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

Syntax

'Declaration
Public Overridable Sub SiteDeleted ( _
    properties As SPWebEventProperties _
)
'Usage
Dim instance As SPWebEventReceiver
Dim properties As SPWebEventProperties

instance.SiteDeleted(properties)
public virtual void SiteDeleted(
    SPWebEventProperties properties
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

properties is null .

Remarks

Warning

If you attempt to access the deleted Web in your event receiver by using the properties.Web property from your WebDeleted(SPWebEventProperties) or SiteDeleted(SPWebEventProperties) event, a System.IO.FileNotFoundException is thrown rather than returning a null reference (Nothing in Visual Basic).

See Also

Reference

SPWebEventReceiver Class

SPWebEventReceiver Members

Microsoft.SharePoint Namespace