0
我试图使用客户端对象模型获取当前网页。 我不能够得到that..please引导我找到它如何使用客户端对象模型获取当前网页?
我用下面的代码它不工作试过..
ClientContext context = new ClientContext(ApplicationContext.Current.Url);
我试图使用客户端对象模型获取当前网页。 我不能够得到that..please引导我找到它如何使用客户端对象模型获取当前网页?
我用下面的代码它不工作试过..
ClientContext context = new ClientContext(ApplicationContext.Current.Url);
当前网站仅适用于那些执行内部的服务器端代码SharePoint上下文。在ClientContext中,您可以使用下面的代码获取您想要的网页,它会为您提供您在ClientContext类中提到的URL所引用的网页。
ClientContext context = new ClientContext(ApplicationContext.Current.Url);
var web = site.Web;
site.Load(web);
Applicationcontex不工作,我必须添加任何装配refferance或什么? – TinTin 2010-08-31 05:56:27