共用方式為


SPWebEventReceiver.WebMoving method

在現有的網站已重新命名或移動到不同的父物件之前發生的同步Before事件。

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

Syntax

'宣告
Public Overridable Sub WebMoving ( _
    properties As SPWebEventProperties _
)
'用途
Dim instance As SPWebEventReceiver
Dim properties As SPWebEventProperties

instance.WebMoving(properties)
public virtual void WebMoving(
    SPWebEventProperties properties
)

參數

Exceptions

Exception Condition
ArgumentNullException

properties是 null 。

備註

移動和重新命名網站的方法如下:

  • 設定ServerRelativeUrl的 Web 網站,並呼叫Update方法。

  • 重新命名,但不是移動到不同的父物件 — 在製作SharePoint Foundation,例如SharePoint Designer與相容的應用程式的 Web 站台。

這個方法支援事件取消和錯誤訊息。

請參閱

參照

SPWebEventReceiver class

SPWebEventReceiver members

Microsoft.SharePoint namespace