Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public static DataSet Gethistory(string siteurl, string listName, int Id)
- {
- Using (ClientContext ctx = new ClientContext(siteUrl))
- {
- Var file = ctx.Web.Lists.GetByTitle(listName).GetItemId(Id).File;
- Var versions = file.Versions;
- Ctx.Load(file);
- Ctx.Load(versions);
- Ctx.Load(versions, vs => vs.Include(v => v.CreatedBy))
- Ctx.ExecuteQuery();
- }
- }
Add Comment
Please, Sign In to add comment