Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
 WebDeleting Method

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
SPWebEventReceiver.WebDeleting Method (Microsoft.SharePoint)
Synchronous Before event that occurs before an existing Web site is completely deleted.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public Overridable Sub WebDeleting ( _
    properties As SPWebEventProperties _
)
Visual Basic (Usage)
Dim instance As SPWebEventReceiver
Dim properties As SPWebEventProperties

instance.WebDeleting(properties)
C#
public virtual void WebDeleting (
    SPWebEventProperties properties
)

Parameters

properties

An SPWebEventProperties object that represents properties of the event handler.

Web site deletion events occur in the following cases:

  • The Web site is deleted through the user interface.

  • The folder that contains a Web site is deleted in an application that is compatible with Windows SharePoint Services (such as Microsoft Office SharePoint Designer 2007) through remote procedure call protocol (RPC).

  • The folder that contains a Web site is deleted through Distributed Authoring and Versioning (DAV).

Web site deletion events only occur for the first Web site in a chain of sites. For example, if a Web site at http://TopSite/Site, which has the subwebs http://TopSite/Site/Subsite1 and http://TopSite/Site/Subsite2, is deleted in Office SharePoint Designer 2007, only one deletion event occurs, namely, for the http://TopSite/Site root Web site.

This class supports event cancellation and error messages.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker