public static void ElevatedListOp(string webUrl, string listName, Action<SPList> op) { WebOpElevated(webUrl, web => { SPList list = web.Lists[listName]; if (list == null) throw new ApplicationException(string.Format("List '{0}' cannot be found in '{1}' web", listName, webUrl)); op(list); }); }