共用方式為


SPEventReceiverDefinitionCollection.Add method (Guid)

事件接收器將定義加入至識別所指定的全域唯一識別項的集合。

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

Syntax

'宣告
Public Function Add ( _
    Id As Guid _
) As SPEventReceiverDefinition
'用途
Dim instance As SPEventReceiverDefinitionCollection
Dim Id As Guid
Dim returnValue As SPEventReceiverDefinition

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

參數

傳回值

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

備註

這個方法會有任何事件接收器應該採取行動的SPList物件。

請參閱

參照

SPEventReceiverDefinitionCollection class

SPEventReceiverDefinitionCollection members

Add overload

Microsoft.SharePoint namespace

Add(Guid, SPList)