A Brief Look at Sandboxed Solution Restrictions

As stated earlier, only a restricted subset of the SharePoint object model is available to sandboxed solutions. These restrictions reduce the risk of badly written custom code from destabilizing the farm. The allowed subset of the object model includes

Microsoft.SharePoint namespace, except SPSite constructor, SPSecurity object, SPWorkItem and SPWorkItemCollection, SPAlertCollection.Add, SPAlertTemplateCollection.Add, SPUserSolution and SPUserSolutionCollection, and SPTransformUtilities

Microsoft.SharePoint.Navigation namespace

Microsoft.SharePoint.Utilities namespace, except SPUtility.SendEmail and SPUtility.GetNTFullNameandEmailFromLogin

Microsoft.SharePoint.Workflow namespace

Microsoft.SharePoint.WebPartPages ...

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.