This topic has not yet been rated - Rate this topic

SPWebEventReceiver.SiteDeleted method

Occurs after a site collection has been deleted.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public virtual void SiteDeleted(
	SPWebEventProperties properties
)

Parameters

properties
Type: Microsoft.SharePoint.SPWebEventProperties
An SPWebEventProperties object that represents properties of the event handler.
ExceptionCondition
ArgumentNullException

properties is null .

Caution note Caution

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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.