Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Q&A

Q. I want to convert a farm solution to a sandboxed solution. How can I ensure that my solution doesn’t use any objects or functions restricted in the sandboxed solution?

A. Visual Studio IntelliSense does show you a trimmed list of classes and functions when developing a sandboxed solution. However, because in your case the code is already written, although IntelliSense will trim the restricted functions and objects, your solution will still compile successfully even when you set it to be deployed as a sandboxed solution. To ensure that you are not using any restricted functionality of the object model, try compiling your code against the version of the Microsoft.SharePoint.dll assembly present in the 14\UserCode\assemblies folder. In this case you will get compilation errors if you try to use any restricted subset of the object model.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial