The scope of a sandboxed solution allows the site collection administrator to activate / deactivate it. There may be some cases where the farm administrator needs to have a look before activating the solution. For such purposes, Sandbox Solution Validator is used. In this final blog post of Sandbox solutions, we will look at HOW TO IMPLEMENT A SANDBOX SOLUTION VALIDATOR. Although it’s a feature that is not used often, it has proved to be handy when you really need to implement a rule for solution activation.
To create a solution validator you need to follow the steps below:
- Create an empty SharePoint Farm solution in Visual Studio.
- Add a class SolutionValidator in class file SolutionValidator.cs
- Inherit it from SPSolutionValidator and give a GUID to the class Click to continue »