{
StringBuilder sbDelete = new StringBuilder();
sbDelete.Append("
string command = "
foreach (SPListItem item in list.Items)
{
sbDelete.Append(string.Format(command, item.ID.ToString()));
}
sbDelete.Append("
site.RootWeb.ProcessBatchData(sbDelete.ToString());
}
No comments:
Post a Comment