Real World Uses, Tips, and Tricks SHAREPOINT 2010 EVENT RECEIVERS Northern Virginia Code Camp April 20 th, 2013 Timothy Ferro
Thanks To Our Sponsors for keeping the fires lit!
Agenda My Background Overview of SharePoint 2010 Event Receivers Focus on List Item Events Demo References
My Background SharePoint Architect / Senior SharePoint Developer Associate at Booz Allen Hamilton Event Speaker/Blogger/Tweeter 5+ Years Architecting and Developing MOSS 2007 and SharePoint 2010 Solutions
Overview of SharePoint 2010 Event Receivers Main Types: Site Collection, Web, List, Field, Item, and Workflow Main Events: Creation, Update, Deletion, Modification, Conversion, Attachment Synchronous vs. Asynchronous Binding Event Receivers Disabling
Focus on List Item Events Event Receiver Base Class SPItemEventReceiver Available Event Host Types SPSite SPWeb SPList SPContentType Supported Events ItemAdding ItemAdded ItemDeleting ItemDeleted ItemUpdating ItemUpdated ItemFileConverted ItemFileMoving ItemFileMoved ItemCheckingIn ItemCheckedIn ItemCheckingOut ItemCheckedOut ItemAttachmentAdding ItemAttachmentAdded ItemAttachmentDeleting ItemAttachmentDeleted
Demo Setting up SharePoint 2010 Event Receiver Solution Feature Activation Code Event Receiver Code Event Receiver Examples Update Fields Validate Data Check Permissions Alerts and s “Workflow” Create Sites/Lists/Folders/Items
References us/library/gg aspx us/library/gg aspx us/library/gg aspx us/library/gg aspx us/library/microsoft.sharepoint.spitemeventreceiv er.aspx us/library/microsoft.sharepoint.spitemeventreceiv er.aspx