This project has moved and is read-only. For the latest updates, please go here.


Oct 24, 2011 at 10:51 AM
What logic should be used to implement NotContains?

This is not possible:
var caml =
        .Where(x => ((string)x["Project"]).Contains("Camlex") == false)

Oct 24, 2011 at 11:26 AM
Edited Oct 24, 2011 at 11:28 AM


SharePoint CAML syntax for requests doesn't allow it -

Only AND/OR, BeginsWith/Contains, Eq/Neq/Geq/Gt/Leq/Lt, IsNull/IsNotNull and DateRangesOverlap items in WHERE clause are supported.

So the only way out for you is to retrieve all items and filter them in-memory.