How can I check if a List exists on a website by URL of the List?
Example of the url: http://MyCompany.com/Lists/MyList
I would like to avoid the FileNotExists
exception.
My current code:
SPList list = web.GetList(_SurveyListUrl);
if (list != null)
{
// some logic
}
Note!
I do not want to check the list by name