Surya SharePoint Tips
Pages
Home
Surya Blog
Surya Pulipati
View my complete profile
Friday, December 10, 2010
Check if list exist in sharepoint / Get specific List in Sharepoint 2010
SPSite site = "sitename"; SPWeb Web = site.OpenWeb(); if (Web != null) { SPList list = Web.Lists.TryGetList("Your List Title"); if (list != null) { //do something list.Title = "Working Documents"; list.Update(); } }
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
►
2015
(1)
►
May
(1)
►
2013
(53)
►
October
(3)
►
September
(1)
►
August
(3)
►
July
(15)
►
June
(7)
►
May
(5)
►
April
(5)
►
March
(6)
►
February
(1)
►
January
(7)
►
2012
(39)
►
December
(1)
►
November
(1)
►
August
(1)
►
July
(11)
►
June
(15)
►
May
(7)
►
February
(1)
►
January
(2)
►
2011
(49)
►
December
(1)
►
October
(1)
►
September
(2)
►
August
(33)
►
June
(1)
►
April
(6)
►
March
(2)
►
January
(3)
▼
2010
(5)
▼
December
(5)
See full error message in SharePoint 2010
Sharepoint List Item Version History
Add/Delete/Update Quicklaunch Navigation Programma...
Check if list exist in sharepoint / Get specific L...
Sharepoint Document library Version History progra...
►
2009
(8)
►
April
(5)
►
March
(3)
No comments:
Post a Comment