Namespace :-
using Microsoft.SharePoint.Client;
Code :-
ClientContext objCtxt = new ClientContext("--------"); //SiteCollectionurl
ClientContext objCtxt = new ClientContext("--------"); //SiteCollectionurl
Web objweb = objCtxt.Web;
objCtxt.Load(objweb.Lists, alllists => alllists.Include(list => list.Title, list => list.Id));
objCtxt.ExecuteQuery();
foreach (List list in objweb.Lists)
{ string ListName=list.Title;
}
No comments:
Post a Comment