Click here to Skip to main content
13,355,275 members (58,998 online)
Rate this:
Please Sign up or sign in to vote.

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>" });

My problem is that it says: Cannot resolve symbol 'Query'

I can't see the problem.

Thank you for helping in advance.
Posted 5-Dec-12 22:21pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

the following link will help u...[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180111.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100