Export (0) Print
Expand All
Expand Minimize

List.EnableVersioning property

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

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (in Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

public bool EnableVersioning { get; set; }

Property value

Type: System.Boolean
Returns Booleantrue if historical versions of list items and documents can be created in the list otherwise returns false. The default value is

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