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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
Public Property EnableVersioning As Boolean
    Get
    Set
'Usage
Dim instance As SPList
Dim value As Boolean

value = instance.EnableVersioning

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

Property Value

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

Remarks

Although the EnableVersioning property is defined on the SPList class, versioning is only available for document library lists.

See Also

Reference

SPList Class

SPList Members

Microsoft.SharePoint Namespace