0

I am very new to SharePoint development. In my project I want to read the contents of the ListItems according to its versions. Here is my pseudo code

                    foreach (ListItem oListItem in listItemCollection)
                              { var item=  wb.GetItemById(oListItem.Id);

                                clientcontext.Load(item, 
                                it => it.Id, it => it.DisplayName,   
                                it=>it.ContentType,it=>it.File);

                                clientcontext.ExecuteQuery(); Console.WriteLine(itm.DisplayName);
                                var strm = item.File.ListItemAllFields;

                                clientcontext.Load(strm);
                                clientcontext.ExecuteQuery(); }

How can I read the contents of ListItem according to its version?

Thanks in Advance.

<span class="pun"> </span>
(Visited 41 times, 1 visits today)
Brian Mair Answered question December 20, 2017
Add a Comment