Click here to Skip to main content
Sign Up to vote bad
good
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");
                      clientContext.Load(folder);
                      clientContext.ExecuteQuery();                    
                   
                        foreach (Microsoft.SharePoint.Client.File file in folder.Files )
                        {
                            MessageBox.Show(file.Name);
                        }
                    }
 
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
Your Filters
Interested
Ignored
     
0 Christian Graus 448
1 Ron Beyer 286
2 samadhan_kshirsagar 229
3 OriginalGriff 223
4 Tadit Dash 213
0 Sergey Alexandrovich Kryukov 7,017
1 Prasad_Kulkarni 3,815
2 OriginalGriff 3,557
3 _Amy 3,372
4 CPallini 3,010


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