共用方式為


SPSite.EventReceivers property

提供在網站集合的範圍內發生的事件的事件接收器。

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

Syntax

'宣告
Public ReadOnly Property EventReceivers As SPEventReceiverDefinitionCollection
    Get
'用途
Dim instance As SPSite
Dim value As SPEventReceiverDefinitionCollection

value = instance.EventReceivers
public SPEventReceiverDefinitionCollection EventReceivers { get; }

Property value

Type: Microsoft.SharePoint.SPEventReceiverDefinitionCollection
傳回SPEventReceiverDefinitionCollection

備註

有已註冊事件接收器 – 例如,在網站存在任何清單 – 在網站集合相關聯的項目會有這些站台層級的事件繫結至它們。

請參閱

參照

SPSite class

SPSite members

Microsoft.SharePoint namespace