ClientContext context = new ClientContext( //Load all the lists from web ListCollection listCollection = web.Lists; //Filters the lists has the content type enabled context.Load(listCollection, lists => lists .Include(list => list.Title) .Where(list => list.ContentTypesEnabled) ); //Execute the Query context.ExecuteQuery(); Console.WriteLine("Lists enabled with ContentType:"); //Print the Content type enabled lists foreach (var list in listCollection) { Console.WriteLine(list.Title); } The above code only returns the List collection from particular web, those are content type enabled.
The above code only returns the List collection from particular web, those are content type enabled.
Popular tags: Sharepoint
Click here to cancel reply.
Nickname (required)
Email (never displayed, shows your gravatar)
Website (Blog)
Your Comment (smaller size | larger size)
Remember my details Notify me of followup comments via e-mail