Tag Info

New answers tagged

-1

Here's a Linq way. I'm demonstrating the return of a single item: SPList nums = web.Lists.TryGetList("Some List"); var filtered = nums.Items.Cast<SPListItem>().FirstOrDefault(k => k["Content Type Name"].ToString().Equals(key)); if (filtered != null) { //do whatever you want to the returned item(s) filtered["Some Field"] = MyValue; ...



Top 50 recent answers are included