postContent.LoadXml(@"<?xml version=""1.0"" encoding=""utf-8""?>
<soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""
xmlns:xsd=""http://www.w3.org/2001/XMLSchema""
xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">
<soap:Body>
<GetListItems xmlns=""http://schemas.microsoft.com/sharepoint/soap/"">
<listName>Image Attachment</listName>
<query><Query><Where><Eq><FieldRef Name=""FSObjType"" /><Value Type=""Integer"">0</Value></Eq></Where></Query></query>

<queryOptions><QueryOptions><ViewAttributes Scope=""RecursiveAll""/><Folder>doc name/"+ foldername + @"/"+id.ToString()+@"</Folder></QueryOptions></queryOptions>
</GetListItems>

 

0 - all files under this folder

1- only folders

posted on 2015-09-10 22:22  blogsweb  阅读(157)  评论(0)    收藏  举报