SPEventReceiverDefinitionCollection Members

Include Protected Members
Include Inherited Members

Represents a collection of SPEventReceiverDefinition objects that are used to enumerate the list of registered event receivers for Windows SharePoint Services objects that can have events.

The SPEventReceiverDefinitionCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of event receiver definitions in the collection. (Overrides SPBaseCollection.Count.)
Public property HostId Gets the identifier of the object to which the event receiver definitions apply.
Public property HostType Gets the type of object to which the event receiver definitions apply.
Public property Item[Guid] Gets the event receiver definition with the specified identifier from the collection.
Public property Item[Int32] Gets the EventReceiverDefinition object at the specified index in the collection.
Public property ItemId Gets the identifier of the item to which the event receiver definitions apply.
Public property Site Gets the site collection to which the event receiver definitions apply.
Public property UpgradedPersistedProperties Gets the collection of field names and values for fields that were deleted or changed. (Inherited from SPAutoSerializingObject.)
Public property Web Gets the site to which the event receiver definitions apply.

Top

Methods

  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 Windows SharePoint Services list.
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.
Public method CopyTo Copies the contents of the collection to the given array starting at the specified index.
Public method Equals (Inherited from Object.)
Public method EventReceiverDefinitionExist Returns a Boolean variable that specifies whether an event receiver definition with the specified Guid exists in the collection.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Retrieves the data required to serialize the object. (Inherited from SPAutoSerializingObject.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnDeserialization Called after the object has been deserialized from the file system cache or the database. (Inherited from SPAutoSerializingObject.)
Public method ToString (Inherited from Object.)
Protected method UpdateParent Causes the containing SPPersistedObject, if one exists, to update its state. (Inherited from SPAutoSerializingObject.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ICollection.CopyTo (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.SyncRoot (Inherited from SPBaseCollection.)

Top

See Also

Reference

SPEventReceiverDefinitionCollection Class

Microsoft.SharePoint Namespace