Showing posts with label SharePoint developer. Show all posts
Showing posts with label SharePoint developer. Show all posts

Monday, June 12, 2017

12 Jun

SharePoint List versioning using c#

We can also enable SharePoint List versioning using c# using (SPSite spsite = new SPSite("http://win7/")) { SPWeb spweb = spsite.OpenWeb(); SPList list = spweb.Lists["CustomList"]; list.EnableVersioning = true; list.Update(); } Retrieve SPListItem versions using c# using (SPSite spsite = new SPSite("http://win7/")) { SPWeb...