SPList.EnableVersioning property

Gets or sets a Boolean value that specifies whether versioning is enabled for the document library.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property EnableVersioning As Boolean
    Get
    Set
'Usage
Dim instance As SPList
Dim value As Boolean

value = instance.EnableVersioning

instance.EnableVersioning = value
public bool EnableVersioning { get; set; }

Property value

Type: System.Boolean
true if versioning is enabled; otherwise, false.

Remarks

The EnableVersioning property is defined on the SPList class. It can be set to true or false for most SharePoint Lists, with a few exceptions, including survey list and external list.

See also

Reference

SPList class

SPList members

Microsoft.SharePoint namespace