Click here to Skip to main content
12,954,199 members (50,586 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
OriginalGriff 6,464
CHill60 3,490
Maciej Los 3,123
ppolymorphe 2,020
Jochen Arndt 1,975

Advertise | Privacy | Mobile
Web01 | 2.8.170525.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