I'm new to SharePoint CSOM and I'm trying to get a list of SP Lists/Libraries.
Here's my code:
public LinkedList<string> getLibraries() {
Web site = spClientContext.Web;
spClientContext.Load(site.Lists);
spClientContext.ExecuteQuery();
LinkedList<string> libraries = new LinkedList<string>();
foreach (List list in site.Lists)
libraries.AddLast(list.Title);
return libraries;
}
When code is executed CSOM returns all libraries, even those that are hidden from the web interface.
Something like this:
How can I determine which List/Library to display in my list so that it matches SharePoint UI visible lists?

