SPWebEventReceiver.SiteDeleted Method
Occurs after a site collection has been deleted.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Parameters
- properties
- Type: Microsoft.SharePoint.SPWebEventProperties
An SPWebEventProperties object that represents properties of the event handler.
| Exception | Condition |
|---|---|
| ArgumentNullException |
properties is null. |
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. |
Caution