Tuesday, 15 June 2010

Using C# Is there any possibility to get only User created Libraries(List) in sharepoint 2013 client object model -


Recently I am working on a project for which the program is required to obtain a SharePoint Document Library created by the user. I tried by the code given below, where "_site.Lists" assets return the predefined libraries (such as "Documnets", "Site Assests", "Form Templates" ...). But I only need user-made libraries. What is the method to differentiate between user-created libraries and predefined libraries (library created when configuring SharePoint site)

  Private Readonly Client Contact _ClientContax; Private Redoni web site; _clientContext = New Client Contact (SharePoint Site URL); _site = _clientContext.Web; _clientContext.Load (_site); _clientContext.ExecuteQuery (); // Get the dualnet libraries _clientContext.Load (_site.Lists); _clientContext.ExecuteQuery (); List Collection Dokilibs = docLibs = _site.Lists;  


No comments:

Post a Comment