Guest User

Untitled

a guest
Apr 16th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment