//using Microsoft.SharePoint.Client;
//GetHiddenLists(credentials, weburl);
//This method returns the hidden lists from the web
private static void GetHiddenLists(ICredentials credentials, string weburl)
{
using (ClientContext ctx = new ClientContext(weburl))
{
ctx.Credentials = credentials;
Web oweb = ctx.Web;
ListCollection lists = oweb.Lists;
var hiddenlistsQuery = from lst in lists
where lst.Hidden == true
select lst;
IEnumerable<List> hiddenLists = ctx.LoadQuery(hiddenlistsQuery);
ctx.ExecuteQuery();
foreach (List lst in hiddenLists)
{
Console.WriteLine(lst.Title);
}
}
Console.WriteLine("Press any key to exit...");
Console.Read();
}This code snippet helps to get the hidden lists from SharePoint web using CSOM.
