In this post, we will discuss various SharePoint event model in SharePoint server 2010. Also, you can check out some of the posts on:
Following the List of SharePoint Event Model:
1. Before and After Events
2. Event Hosts
3. Event Receivers and Handling Events
4. Binding Event Handlers
1. Before and After Events:
These events fire before an action occur and before SharePoint has written any data to the content database. For this reason, Before events are always synchronous.
You can identify Before events because their member names end with the “-ing” suffix – for example, ItemAdding, ListAdding.
After events, on the other hand, trigger event handlers that execute after user actions are committed to the content database and they invoke code that runs after the content database has been modified. This provides an opportunity to develop code that executes logic that occurs after a user has completed a specific action.
Because After events execute in a different process from the triggering action, they can execute either synchronously or asynchronously. You can identify After events because their member names end with the “-ed” suffix – for example, ItemDeleted, WebProvisioned.
2. Event Hosts:
Event hosts are objects, such as site collections, Webs, lists and list items, that expect to receive events – or, in other words, objects whose event receivers “listen” for SharePoint Foundation events. These SharePoint Foundation 2010 event host object types include instances of common objects such as SPSite, SPWeb, SPList, and SPContentType. Each of the event host types has specific event receiver base types from which you can inherit, to create an event receiver collection.
3. Event Receivers and Handling Events:
SharePoint Foundation event handlers are a compiled module of custom managed code whose invocation is triggered by a specified event that you have specified. Event handler code is compiled into a .dll file and deployed to the GAC.
4. Binding Event Handlers:
After your event handler code is compiled and deployed to the GAC, you need to bind it to a receiver object. Also known by the term “register,” binding is the process by which event handler code is associated with an object type.
Following Event types:
– Site Events
– Web Events
– List Events
– List Field Events
– Item Events
Download FREE SharePoint 2019 Installation PDF Guide
This FREE PDF contains, Steps by step guide to install SharePoint 2019 Preview, prerequisites, hardware and software new features. First impression to SharePoint Server 2019 new modern site, modern lists and modern document libraries.
You May Also like the Following SharePoint Online Tutorials: