Understanding the Event Receivers

Event receivers, as the name suggests, allow you to subscribe and respond to events that occur to SharePoint items such as sites, lists, list items, and so on. For example, you may want to send out a notification when a new site is provisioned or prevent deletion of a list item based on certain conditions. Event receivers help you to achieve just that, by enabling your code to subscribe to various events and then responding accordingly.

Hour 11, “Understanding Advanced Data Management Concepts in SharePoint 2010,” looks at event receivers for lists and list items. This section explores event receivers associated with sites in more detail.

Consider a scenario where you want to log information about every newly ...

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.