Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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:

C#
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.
Posted

1 solution

the following link will help u...


http://sharepointcafe.net/sharepoint_caml.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900