Wednesday, 18 May 2011

Iterate through a SharePoint list (SPList)

SPList list = web.Lists["TestTasks"];
SPListItemCollection listItems = list.Items;

foreach (SPListItem item in listItems)
{
//do stuff
}

No comments:

Post a Comment

Comments are moderated, so you'll have to wait a little bit before they appear!