SPEventReceiverDefinitionCollection.Site property
取得事件接收器定義套用網站集合。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Property Site As SPSite
Get
'用途
Dim instance As SPEventReceiverDefinitionCollection
Dim value As SPSite
value = instance.Site
public SPSite Site { get; }
Property value
Type: Microsoft.SharePoint.SPSite
SPSite 物件,表示網站集合。
備註
事件處理常式會登錄在網站或網站集合層級,來回應事件。當使用者執行動作,例如刪除、 更新、 簽入,或轉換的Microsoft SharePoint Foundation物件時,物件就會產生事件。指定動作的發生此事件必須由適當的事件內的主機進行處理的SharePoint Foundation陣列接收。
請參閱
參照
SPEventReceiverDefinitionCollection class
SPEventReceiverDefinitionCollection members