How to: Create and Deploy Event Receivers in Sandboxed Solutions
This topic describes how to create and deploy an event receiver in a sandboxed solution.
Applies to: SharePoint Foundation 2010
Available in SharePoint Online
To create and test an event receiver
Follow the steps in the topic How to: Create an Event Handler Feature.
When testing and debugging is completed, make the sandboxed solution package (.wsp file) available to site collection administrators.
Deploying the Sandboxed Solution
A site collection administrator can install a sandboxed solution to the site collection's solution gallery. There are two steps to this process. First, the solution package is uploaded to the gallery. Second, it is deployed, which is called "activation" for sandboxed solutions. The second step automatically activates any Features in the package. If any solution validators are registered with the site collection, they also execute at the activation stage. If the solution passes validation and has not been blocked by a farm administrator, it is ready for use on the site collection.
See Also
Concepts
What Can Be Implemented in Sandboxed Solutions in SharePoint 2010
Restrictions on Sandboxed Solutions in SharePoint 2010
Sandboxed Solutions Architecture in SharePoint 2010