Wednesday 6 November 2013

Programmatically get all list name in sharepoint 2010 using c#

Share it Please
  Namespace :-
           using Microsoft.SharePoint.Client;
  Code :-
          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

Followers

Follow The Author