使用CamlQuery更新ListItem [英] Update a ListItem with CamlQuery
本文介绍了使用CamlQuery更新ListItem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用Microsoft.Sharepoint.Client库中的Class CamlQuery更新我的控制台应用程序中的SharePoint列表中的ListItem 。
我的代码如下:
Hi,
I would like to update a ListItem in a SharePoint-List in my Console-Application with the Class CamlQuery from the Microsoft.Sharepoint.Client library.
My code is following:
ListItemCreationInformation itemCreationInformation = new ListItemCreationInformation();
ListItem oListItem = oList.AddItem(itemCreationInformation);
oListItem = oList.GetItems(new CamlQuery() { Query = @"<Where></Where>" });
oListItem.Update();
clientContext.ExecuteQuery();
我的问题是它说:无法解析符号''查询''
我看不出问题所在。
感谢您提前帮助。
My problem is that it says: Cannot resolve symbol ''Query''
I can''t see the problem.
Thank you for helping in advance.
推荐答案
以下链接将帮助您... < br $> b $ b
http://sharepointcafe.net/sharepoint_caml .aspx [ ^ ]
the following link will help u...
http://sharepointcafe.net/sharepoint_caml.aspx[^]
这篇关于使用CamlQuery更新ListItem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文