Posts

Showing posts with the label SharePoint 2010 Event Receiver

Event Receiver enhancements in SharePoint 2010

Image
With SharePoint 2010, there are some good enhancements in Event Receivers. New Events New Registration technique Synchronous After-Events Custom error pages and redirection  Impersonation enhancements ( SPEventPropertiesBase.OriginatingUserToken ) List of Events : http://msdn.microsoft.com/en-us/library/ms437502.aspx   Lets discuss one by one. 1. New Events As part of SharePoint 2010, there are six new events that you can take advantage of. These events allow you to capture creation and provisioning of new webs and the creation and deletion of lists.  Event Name  Event Description  Event Receiver Class WebAdding A synchronous event that happens before the web is added. Some URL properties may not exist yet for the new site, since the new site does not exist yet. SPWebEventReceiver WebProvisioned A synchronous or asynchronous after-event that occurs after the web is created. You make the event synchronous or asynchronous by using the Syn