using (ClientContext clientContext = new ClientContext("http://sharepoint/sites/SPTest")) { clientContext.Credentials = new NetworkCredential("Administrator", "Admin13", "sharepoint"); Web web = clientContext.Web; Folder folder = web.GetFolderByServerRelativeUrl("Documents"); clientContext.Load(folder); clientContext.ExecuteQuery(); foreach (Microsoft.SharePoint.Client.File file in folder.Files ) { MessageBox.Show(file.Name); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)