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>
Hi Beau,
The client side object model has no methods to access list item version history. You’ll need to use the GetVersionCollection method of the Lists.asmx web service.
Brian
