共用方式為


SPWeb.EventReceivers property

取得網站目前可用的事件接收器定義集合。

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

Syntax

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

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

Property value

Type: Microsoft.SharePoint.SPEventReceiverDefinitionCollection
SPEventReceiverDefinitionCollection 物件,表示事件接收器定義。

請參閱

參照

SPWeb class

SPWeb members

Microsoft.SharePoint namespace