共用方式為


SPEventReceiverDefinitionCollection.Add method

建立事件接收器定義集合中。

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

Syntax

'宣告
Public Function Add As SPEventReceiverDefinition
'用途
Dim instance As SPEventReceiverDefinitionCollection
Dim returnValue As SPEventReceiverDefinition

returnValue = instance.Add()
public SPEventReceiverDefinition Add()

傳回值

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

備註

這個方法加入至集合的事件接收者有EmptyGuid ,並沒有SPList

請參閱

參照

SPEventReceiverDefinitionCollection class

SPEventReceiverDefinitionCollection members

Add overload

Microsoft.SharePoint namespace

其他資源

建立基本的事件處理常式