WebMoving Method
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

SPWebEventReceiver.WebMoving Method

Windows SharePoint Services 3

Synchronous Before event that occurs before an existing Web site has been renamed or moved to a different parent object.

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

public virtual void WebMoving(
	SPWebEventProperties properties


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

The means for moving and renaming Web sites include the following:

  • Setting the ServerRelativeUrl of a Web site and calling the Update method.

  • Renaming—but not moving to a different parent object—the site in a Web authoring application that is compatible with Windows SharePoint Services, such as Microsoft Office SharePoint Designer 2007.

This class supports event cancellation and error messages.

© 2015 Microsoft