Export (0) Print
Expand All

SP.List.enableVersioning Property

SharePoint 2010

Last modified: February 09, 2010

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);

[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.

Show:
© 2014 Microsoft