-
-
Save eirikb/a7c6efb2360382933896 to your computer and use it in GitHub Desktop.
Loop all SPLists in all SPWebs in current SPSite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SPContext.Current.Site.AllWebs.ToList().ForEach(web => | |
{ | |
web.Lists.Cast<SPList>().ToList().ForEach(list => | |
{ | |
// Do work | |
}); | |
web.Dispose(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment