SPEventReceiverDefinitionCollection.Add method (Guid)

Adds an event receiver definition to the collection that is identifiable by the specified globally unique identifier.

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

Syntax

'Declaration
Public Function Add ( _
    Id As Guid _
) As SPEventReceiverDefinition
'Usage
Dim instance As SPEventReceiverDefinitionCollection
Dim Id As Guid
Dim returnValue As SPEventReceiverDefinition

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

Parameters

  • Id
    Type: System.Guid

    A Guid that represents the event receiver definition.

Return value

Type: Microsoft.SharePoint.SPEventReceiverDefinition
An SPEventReceiverDefinition object representing the event receiver definition.

Remarks

This method has no SPList objects on which the event receiver should act.

See also

Reference

SPEventReceiverDefinitionCollection class

SPEventReceiverDefinitionCollection members

Add overload

Microsoft.SharePoint namespace

Add(Guid, SPList)