Table of contents
TOC
Collapse the table of content
Expand the table of content

ListExtensions.UpdateListVersioning Method

SharePoint Dev Documents|Last Updated: 5/20/2017
|
1 Contributor

Enable/disable versioning on a list

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static void UpdateListVersioning(this Web web, String listName, Boolean enableVersioning, Boolean enableMinorVersioning = True, Boolean updateAndExecuteQuery = True)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  Site to be processed - can be root web or sub site

listName

  Type: System.String
  List to operate on

enableVersioning

  Type: System.Boolean
  True to enable versioning, false to disable

(optional) enableMinorVersioning

  Type: System.Boolean
  Enable/Disable minor versioning

(optional) updateAndExecuteQuery

  Type: System.Boolean
  Perform list update and executequery, defaults to true

Return Value

Type: void

See also

© 2018 Microsoft