SPEventReceiverDefinitionCollection.Add method
Creates an event receiver definition in the collection.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function Add As SPEventReceiverDefinition
'Usage
Dim instance As SPEventReceiverDefinitionCollection
Dim returnValue As SPEventReceiverDefinition
returnValue = instance.Add()
public SPEventReceiverDefinition Add()
Return value
Type: Microsoft.SharePoint.SPEventReceiverDefinition
An SPEventReceiverDefinition object that represents the event receiver definition.
Remarks
The event receiver added to the collection by this method has an EmptyGuid and no SPList.
See also
Reference
SPEventReceiverDefinitionCollection class
SPEventReceiverDefinitionCollection members
Microsoft.SharePoint namespace
Other resources
Creating a Basic Event Handler