SP.List.enableVersioning Property

Applies to: SharePoint Foundation 2010

Gets or sets a value that specifies whether historical versions of list items and documents can be created in the list.

var value = SP.List.get_enableVersioning(); 
SP.List.set_enableVersioning(value);

Property Value

Type: Boolean

Applies To

SP.List Class

Exceptions

  • [System.ArgumentException]
    Value is set to true and the list does not support historical versions. Error code: -2147024809.
  • [System.NotSupportedException]
    Value is set to true and the list is an external list. Error code: -1.

See Also

Reference

SP.List Methods

SP.List Properties

SP Namespace