using (SPSite site = new SPSite("http://server/sites/siteCollection")) using (SPWeb web = site.OpenWeb()) { string listUrl = string.Format("{0}{1}", web.ServerRelativeUrl, "Lists/SomeList"); SPList list = web.GetList(listUrl); }