【发布时间】:2013-06-19 12:44:53
【问题描述】:
ClientContext cl = new Microsoft.SharePoint.Client.ClientContext("http://" + "mysharepoint" + "/" + SubWeb);
System.Net.NetworkCredential cred = new System.Net.NetworkCredential("myuser", "mypass", "ntuni");
cl.Credentials = cred;
ListItemCollection result;
List qrtList = cl.Web.Lists.GetByTitle(QRT_LIST_NAME);
result = qrtList.GetItems(CamlQuery.CreateAllItemsQuery());
cl.Load(result);
cl.ExecuteQuery();
foreach (ListItem item in result)
{
if (item.FieldValues["UniqueId"].ToString() == QrtId)
{
item.FieldValues["R_x00e9_ponse"] = r.ResponseTxt;
item.Update();
qrtList.Update();
}
}
cl.ExecuteQuery();
由于某种原因,一旦我访问共享点,我的对象就不会更新。这围绕着一个尝试捕获,没有任何东西被捕获。哈尔普?谢谢!
ps:添加新项目可以正常工作。
【问题讨论】:
标签: c# .net sharepoint sharepoint-clientobject