开发者

SharePoint2010:Getting Files From Library in Sandbox

How to get Files from Shared Library in Sandbox solutions. When I try these code, it does not w开发者_如何学Pythonork.

string documentLibrary = "Shared Documents"; SPSite site = new SPSite("http://win-5g8rm9qpjrp");

Is there any other way or any kind of answer for getting documents. Thanks.


Have you ensured your Visual Studio 2010 project trust level is set to "Deploy as sandboxed solution"? This is from the options you get when you first setup your project.

When you say "it does not work". What is happening? Is there an error?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜