skip to main
|
skip to sidebar
SharepointJo
Wednesday, March 17, 2010
Check if SPLIst exist
static bool ListExists(SPWeb web, string listName)
{
return web.Lists.Cast
().Any(list => string.Equals(list.Title, listName));
}
static bool WebExists(SPSite site, string webName)
{
return site.AllWebs.Cast
().Any(web => string.Equals(web.Name, webName));
}
http://whatsthesharepoint.com/2010/01/easy-check-if-an-spwebsplist-exist/
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
▼
2010
(11)
►
June
(1)
►
May
(1)
►
April
(1)
▼
March
(8)
HRESULT: 0x81070201 Exception
Unable to load symbols
Unable to select / Import wepart
Check if SPLIst exist
Silver Light Out of browser with sharepoint
Unable to debug SilverLight Webpart in Sharepoint
Error occurred in deployment step ‘Retract Solutio...
Error occurred in deployment step 'Retract Solutio...
►
2008
(1)
►
August
(1)
►
2007
(1)
►
December
(1)
No comments:
Post a Comment