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.SiteDeleted method

Occurs after a site collection has been deleted.

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

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

instance.SiteDeleted(properties)

Parameters

properties
Type: Microsoft.SharePoint.SPWebEventProperties

An SPWebEventProperties object that represents properties of the event handler.

ExceptionCondition
ArgumentNullException

properties is null .

Caution noteCaution

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).

Show:
© 2015 Microsoft