2010-08-06 70 views

回答

0

当前网站仅适用于那些执行内部的服务器端代码SharePoint上下文。在ClientContext中,您可以使用下面的代码获取您想要的网页,它会为您提供您在ClientContext类中提到的URL所引用的网页。

  ClientContext context = new ClientContext(ApplicationContext.Current.Url); 
      var web = site.Web; 
      site.Load(web); 
+0

Applicationcontex不工作,我必须添加任何装配refferance或什么? – TinTin 2010-08-31 05:56:27

相关问题