共用方式為


SPEventReceiverDefinition Members

Include Protected Members
Include Inherited Members

Abstract base class that defines general properties of an event receiver for list items, lists, websites, and workflows.

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 SharePoint Foundation 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 identifier of the object that is hosting the event.
Public property HostType Gets or sets the type of object that is hosting the event.
Public property Id Gets the ID of the event receiver definition.
Public property Name Gets or sets the name of the event receiver.
Public property ParentHostId Gets or sets the ID of the parent object of the object that hosts the event.
Public property ParentHostType Gets or sets the object type of the parent object 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 ID of the site collection in which the event receiver is registered.
Public property Synchronization Gets an enumeration that specifies the synchronization state for the event receiver.
Public property Type Gets or sets the type of event for the event receiver.
Public property UpgradedPersistedProperties (Inherited from SPAutoSerializingObject.)
Public property WebId Gets the ID of the site in which the event receiver is registered.

Top

Methods

  Name Description
Public method Delete Deletes the event receiver registration.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method FireContextEvent Executes the event receiver, either synchronously or asynchronously.
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData (Inherited from SPAutoSerializingObject.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnDeserialization (Inherited from SPAutoSerializingObject.)
Public method ToString (Inherited from Object.)
Public method Update Updates the data associated with the event receiver registration.
Protected method UpdateParent (Inherited from SPAutoSerializingObject.)

Top

See Also

Reference

SPEventReceiverDefinition Class

Microsoft.SharePoint Namespace