private SPListLookupKey GetListInfoFromUrl(string listUrl) { SPFolder folder = (SPFolder)contextSite.GetFileOrFolder(listUrl); if (folder == null) { throw new ArgumentException("listUrl"); } return(new SPListLookupKey(folder.ParentWeb.ID, folder.ParentListId)); }