none
how to get file's property in sharepoint document library subfolder using c# RRS feed

  • 问题

  • I want to get file which has been uploaded to server. file is in a subfolder with many excel files and it has workbook version and workbook type columns. please give me some directions or advice.  

                var folder = client.Web.GetFolderByServerRelativeUrl("SDT PRO/Excel Tools folder");
                var iss = folder.ListItemAllFields;
                var folderItem = folder.Files;
                client.Load(iss);
                client.Load(folderItem);
                client.ExecuteQuery();
                foreach (var item in folderItem)
                {
                    var l4 = item.ListItemAllFields["Workbook Version"];
                }

    I try to get it like this, but it threw a exception.

    2018年7月2日 9:55

全部回复

  • Hi sumail,

    This forum discuss and ask question about .net framework base class, since your issue is more related to SharePoint development, I would suggest that you could post your issue on SharePoint Development and Programming for suitable support.

    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=sharepointdevelopment

    Best regards,

    Zhanglong


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2018年7月3日 2:07