Artificial Intelligence
Please fill the required field.

Folder mega


Folder = baseSite.Folders.get_by_url("MyLibrary/MyFolder/MegaFolder"); //When you work with a Library //use List to query libraries. // example -Get a single library using (ClientContext ctx = new ClientContext("https://mytenant.sharepoint.com/")) { //Set Credentials ctx.Credentials = new SharePointOnlineCredentials("This email address is being protected from spambots. You need JavaScript enabled to view it.", GetSPOSecureString("password")); Web web = ctx.Web; //query the library List list = web.Lists.GetByTitle("icleantest"); ctx.Load(list); ctx.ExecuteQuery(); Console.WriteLine("List Title {0}, Item Count: {1}", list.Title, list.ItemCount); } public static SecureString GetSPOSecureString(string password) { SecureString secPass = new SecureString(); foreach (char c in password) { secPass.AppendChar(c); } return secPass; } ```