Timeline for Is there a way to get Folder object from ListItem one?
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 14, 2014 at 14:05 | comment | added | RJ Cuthbertson | It doesn't matter which answer is first. You should accept the best answer, and upvote any answers that were helpful. | |
| Mar 14, 2014 at 13:49 | vote | accept | adams | ||
| Mar 14, 2014 at 13:45 | comment | added | adams | I did not notice that I am using wrong Microsoft.SharePoint.Client and Microsoft.SharePoint.Client.Runtime dlls to communicate with SP 2010. I created my project with VS 2013 and referenced dlls were in 15.0.0.0 version. That's why I got Folder property in ListItem object (which is available in SP 2013). After change dlls reference to 14.0.0.0 version Folder property is not available any more. Your post helped me to understand this problem, so I will check it as an answer (despite the fact that Camerons post with GetFolderByServerRelativeUrl method was the first one). | |
| Mar 14, 2014 at 12:47 | comment | added | Vadim Gremyachev | I believe this is the only way, if you need to get Folder object associated with ListItem object in SPS 2010 | |
| Mar 14, 2014 at 12:36 | comment | added | adams | So there is no other way than using GetFolderByServerRelativeUrl method? | |
| Mar 14, 2014 at 12:35 | history | edited | Vadim Gremyachev | CC BY-SA 3.0 | added 5 characters in body |
| Mar 14, 2014 at 12:26 | history | answered | Vadim Gremyachev | CC BY-SA 3.0 |