I have the following code:
SPSiteDataQuery query = new SPSiteDataQuery();
query.ViewFields = "<FieldRef Name=\"UniqueId\" />";
query.Webs = "<Webs Scope=\"SiteCollection\" />";
query.Query = "<Where<Eq><FieldRef Name='MyCustomField' /><Value Type='Boolean'>1</Value></Eq></Where>";
query.Lists = "<Lists BaseType=\"1\" />";
DataTable results = site.RootWeb.GetSiteData(query);
This searches all the Document Libraries in the site collection, but I want to search all the Lists as well. Is there a way to set the Lists property to search both at the same time?