Tuesday, November 26, 2013

Code to check provided SharePoint list existed or not

use below code to check provided list existed or not

SPList list = currWeb.Lists.TryGetList("SampleList");
if(list!=null)
{
//some code
}

No comments:

Post a Comment