Programmatically get ListItemVersion using client object model SharePoint 2010

后端 未结 2 1225
Happy的楠姐
Happy的楠姐 2021-02-15 22:17

I have a scenario where I have to move all my data in a SharePoint 2010 list (name= \"VersionTestList\") to a SQL server database. Since versioning is enabled in the list, I wan

2条回答
  •  生来不讨喜
    2021-02-15 22:48

    You have to initialize web.ServerRelativeUrl like this

    oldVersions = clientContext.LoadQuery(versions.Where(v => v != null));
    clientContext.Load(web, w => w.ServerRelativeUrl);
    clientContext.ExecuteQuery();
    

提交回复
热议问题