There are a lot of situations where you have to walk through all Sharepoint lists. To do this the proper way, you have to talk to the WSS object model. I was looking foor a tool that could make my life in Sharepoint a bit easier and I found Sharepoint Harvester. With this simple library, you can do a lot of work with minimal code. For example:
public void DoYourThing() {
SiteHarvester siteHarvester = new SiteHarvester();
siteHarvester.Url = http://sharepointurl/;
siteHarvester.Recursive = true;
siteHarvester.ListFound += new ListFoundHandler( siteHarvestor_ListFound );
siteHarvester.RunHarvester();
}
void siteHarvestor_ListFound( object sender, ListFoundEventArg e ) {
e._list.EnableVersioning = false;
e._list.Update();
}
Have fun with it!
e4ec8f5a-8b75-44e1-885d-4d61ed864f4c|0|.0