共用方式為


SPWebEventReceiver.SiteDeleted method

刪除網站集合後,就會發生。

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

Syntax

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

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

參數

Exceptions

Exception Condition
ArgumentNullException

properties是 null 。

備註

注意

如果您嘗試存取已刪除的 Web 事件接收者使用properties.Web屬性,從WebDeleted(SPWebEventProperties)或SiteDeleted(SPWebEventProperties)事件, System.IO.FileNotFoundException就是擲回,而不是傳回a null reference (Nothing in Visual Basic)。

請參閱

參照

SPWebEventReceiver class

SPWebEventReceiver members

Microsoft.SharePoint namespace