Developing Sandboxed Solution Validators
While farm administrators can always go and block a rogue solution from the Manage User Solutions screen, there is another proactive way in which solutions can be checked for validations at the time of activation, and any solutions failing validation can be prevented from activation. This can be achieved by developing a sandboxed solution validator.
The following steps are used to develop a solution validator:
1. Create a class inheriting from Microsoft.SharePoint.UserCode.SPSolutionValidator
class.
2. Provide a System.Runtime.InteropServices.Guid
for the validator that will be used as ProviderID
for the validator.
3. Define a default constructor in the validator that takes no arguments.
4. Define another ...
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.