O'Reilly logo

Sams Teach Yourself SharePoint® 2010 Development in 24 Hours by Vinu Santhakumari, Manpreet Singh, Sohail Sayed

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required