Understanding Lists and List Item Event Receivers

In Hour 8, “Understanding Client Object Model in SharePoint 2010,” you learned how SharePoint enables you to hook the events in the life cycle of a SharePoint site collection and a SharePoint site through various event receivers provided by SharePoint. This section looks at the event receivers for a list and for list items. The event receivers for a list and list items can be categorized in two ways. One is the event receivers that get called when an event is happening and before it is completed. For example, the FieldAdding event is called before a new field is added to the list, and the ItemAdding event gets called before a new list item is created. Similarly some event receivers get called ...

Get Sams Teach Yourself SharePoint® 2010 Development in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.