SPLibrary – A SharePoint Library on a CodePlex near you
I have just released SPLibrary, a SharePoint Library written in C# on CodePlex. It works with the SharePoint web services and do not have to run on the same server as SharePoint.
Examples
Get all sites
SPLibrary sp = new SPLibrary(new Uri("http://moss"), new NetworkCredential("user", "password", "domain"));
SPWeb[] webs = sp.GetWebs();
Get all lists for a site
SPLibrary sp = new SPLibrary(new Uri("http://moss"), new NetworkCredential("user", "password", "domain"));
SPList[] lists = sp.GetLists();
Get a specific list
SPLibrary sp = new SPLibrary(new Uri("http://moss"), new NetworkCredential("user", "password", "domain"));
SPSingleList list = sp.GetList("List ID (GUID)");
Get all items in a list
SPLibrary sp = new SPLibrary(new Uri("http://moss"), new NetworkCredential("user", "password", "domain"));
SPListItem[] listitems = sp.GetListItems("List ID (GUID)"); //All items
SPListItem[] listitems = sp.GetListItems("List ID (GUID)", Dictionary<string, string>); //Filtered
Search the site
SPLibrary sp = new SPLibrary(new Uri("http://moss"), new NetworkCredential("user", "password", "domain"));
SPSearchResult[] search = sp.Search(""); //6 different overloads for filtering
You can find more information and the source code here: