共用方式為


SPWebEventReceiver.WebProvisioned method

同步After之後子網站完全佈建和佈建程序已停止,但不會觸發建立新的網站集合的根 web 站台時引發的事件。

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

Syntax

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

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

參數

Exceptions

Exception Condition
ArgumentNullException

properties是 null 。

備註

這個方法可以設定成在同步或非同步模式下運作。若要這麼做,請將Synchronization屬性設定SPWebEventReceiver物件上,如果您使用物件模型所註冊。如果註冊所使用的功能,還有Receiver標籤下方的Synchronization項目。

Notes to implementers

因為事件接收器必須使用註冊網站集合之前處理常式可以執行、 建立網站集合和其根 web 站台時,無法執行的WebAdding和WebProvisioned的處理常式。

請參閱

參照

SPWebEventReceiver class

SPWebEventReceiver members

Microsoft.SharePoint namespace