What are event receivers?

What are event receivers?

- When any application is being developed there are some events which need to be handled.
- Event receivers allow responding to events as they occur within SharePoint, such as adding an item or deleting an item.
- They inherit from the SpItemEventReciever or SPListEventReciever base class.
- For example, whenever we add a new item to a list, some action needs to be performed like notifying the person who created the list item, or the dependent entries are being modified in some other location etc.
- Event receivers handle such events. There are many SharePoint event receiver classes in order to handle variety of events.
When would you use an event receiver?
When would you use an event receiver? - Event receivers respond to events, thus used for something as canceling an action, e.g. deleting a document library by using the Cancel property......
Asynchronous and synchronous event receivers
Asynchronous and synchronous event receivers.....
Synchronous and Asynchronous events
Synchronous event are the ones in which the caller needs to pause to wait for a response. The fact that it waits for a response means that the call is a “blocking” call to the event handler.......
Post your comment