Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

SPWebEventReceiver.WebMoving Method

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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public virtual void WebMoving(
	SPWebEventProperties properties
)

Parameters

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

properties is null .

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 SharePoint Foundation, such as Microsoft Office SharePoint Designer 2007.

This method supports event cancellation and error messages.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.