Friday, 4 April 2008

SharePoint Events

Receiving SharePoint Events
To catch SharePoint events at an item level, your classes must inherit from the SPItemEventReceiver base class. From this inheritance, your class will be able to take advantage of the methods shown in the following table:
Public Methods
Name Description
ContextEvent Item level event reaction to a SPContext class thod all.
ItemAdded Asynchronous After event that occurs after a new item has been added to its containing object.
ItemAdding Synchronous before event that occurs when a new item is added to its containing object.
ItemAttachmentAdded Asynchronous after event that occurs after a user adds an attachment to an item.
ItemAttachmentAdding Synchronous before event that occurs when a user adds an attachment to an item.
ItemAttachmentDeleted Asynchronous after event that occurs when after a user removes an attachment from an item.
ItemAttachmentDeleting Synchronous before event that occurs when a user removes an attachment from an item.
ItemCheckedIn Asynchronous after event that occurs after an item is checked in.
ItemCheckedOut Asynchronous after event that occurs after an item is checked out.
ItemCheckingIn Synchronous before event that occurs as a file is being checked in.
ItemCheckingOut Synchronous before event that occurs after an item is checked out.
ItemDeleted Asynchronous after event that occurs after an existing item is completely deleted.
ItemDeleting Synchronous before event that occurs before an existing item is completely deleted.
ItemFileConverted Asynchronous after event that occurs after a file has been transformed by the SPFile.Convert method.
ItemFileMoved Occurs after a file is moved.
ItemFileMoving Occurs when a file is being moved.
ItemUncheckedOut Synchronous before event that occurs when an item is being unchecked out.
ItemUncheckingOut Synchronous before event that occurs when an item is being unchecked out.
ItemUpdated Asynchronous after event that occurs after an existing item is changed, for example, when the user changes data in one or more fields.
ItemUpdating Synchronous before event that occurs when an existing item is changed, for example, when the user changes data in one or more fields.


-------------------Have a nice Time !!!--------------------