Click here to Skip to main content
13,146,663 members (68,750 online)
Rate this:
Please Sign up or sign in to vote.
I am trying to access documents from a sharepoint site , I am accessing from client machine , Sharepoint in install on another machine (server) by using microsoft.sharepoint.client.dll

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");
                        foreach (Microsoft.SharePoint.Client.File file in folder.Files )

I just want to access the properties of documents . The above code doesn't gets files out of that folder
Posted 25-Feb-13 2:10am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170915.1 | Last Updated 26 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100