SPEventReceiverDefinition Members

Include Protected Members
Include Inherited Members

Abstract base class that defines general properties of an event receiver that will reside in the SPEventReceiverDefinitionCollection.

The SPEventReceiverDefinition type exposes the following members.

Properties

  Name Description
Public property Assembly Gets or sets the strong name that represents the assembly that is used for event receiving.
Public property Class Gets or sets a string that represents the class that is used for event receiving.
Public property ContextCollectionId Gets or sets the Guid (Globally Unique Identifier) of the collection of context objects that are associated with the specified Windows SharePoint Services event receiver processes.
Public property ContextEventType Gets or sets the Guid (Globally Unique Identifier) of the receiver process that is associated with this context event.
Public property ContextId Gets or sets the Guid (Globally Unique Identifier) for the context for the event receiver definitions.
Public property ContextItemId Gets or sets the identifier for items in the SPContext object.
Public property ContextItemUrl Gets or sets the URL for the context item.
Public property ContextObjectId Gets or sets the Guid (associated with the ContextType) for the context object.
Public property ContextType Gets or sets the Guid that represents the type of the receiver process.
Public property Credential Gets or sets the credential for the SPEventReceiverDefinition object.
Public property Data Gets or sets the data that is associated with the receiver.
Public property Filter Gets or sets the data that is associated with the filter for the event receiver.
Public property HostId Gets or sets the Guid (Globally Unique Identifier) of the object that is hosting the event.
Public property HostType Gets or sets the type of object that is specified as the event host for an event receiver.
Public property Id Gets the Guid (Globally Unique Identifier) of the event receiver definition within the collection.
Public property Name Gets or sets the name of the SPEventReceiverDefinition.
Public property ParentHostId Gets or sets the Guid of the Parent of the event host object.
Public property ParentHostType Gets or sets the object type of the Parent of the object that is hosting the event.
Public property SequenceNumber Gets or sets an integer that represents the relative sequence of the event.
Public property SiteId Gets the Guid of the site collection in which the event receiver is registered.
Public property Type Gets or sets the type of event for the SPEventReceiverDefinition.
Public property WebId Gets the GUID (Globally Unique Identifier) of the SPSite in which the event receiver is registered.

Top

Methods

  Name Description
Public method Delete Deletes the event receiver registration from the SPEventReceiverDefinitionCollection object.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method FireContextEvent This method causes the event receiver to be executed, either synchronously or asynchronously.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method Update Updates the data associated with the event receiver registration.

Top

See Also

Reference

SPEventReceiverDefinition Class

Microsoft.SharePoint Namespace