Share via


SPEventReceiverDefinitionCollection.Add method

Creates an event receiver definition in the collection.

Overload list

  Name Description
Public method Add() Creates an event receiver definition in the collection.
Public method Add(Guid) Adds an event receiver definition to the collection that is identifiable by the specified globally unique identifier.
Public method Add(Guid, SPList) Creates an event receiver definition in the collection based on the specified GUID and Microsoft SharePoint Foundation list.
Public method Add(SPEventReceiverType, String) Creates a remote event receiver definition in the collection that is based on the specified event receiver type and url.
Public method Add(SPEventReceiverType, String, String) Adds an event receiver definition to the collection that is already associated with its Assembly name, Class name, and event receiver type.

Top

See also

Reference

SPEventReceiverDefinitionCollection class

SPEventReceiverDefinitionCollection members

Microsoft.SharePoint namespace