Click here to Skip to main content
12,505,104 members (61,329 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# .NET SharePoint WebService , +

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 21: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 | Mobile
Web02 | 2.8.160919.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2016
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