daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public static DataSet Gethistory(string siteurl, string listName, int Id)
  2. {
  3.   Using (ClientContext ctx = new ClientContext(siteUrl))
  4.   {
  5.     Var file = ctx.Web.Lists.GetByTitle(listName).GetItemId(Id).File;
  6.     Var versions = file.Versions;
  7.     Ctx.Load(file);
  8.     Ctx.Load(versions);
  9.     Ctx.Load(versions, vs => vs.Include(v => v.CreatedBy))
  10.     Ctx.ExecuteQuery();
  11.   }
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top