SPList Properties


SPList.EnableVersioning Property (Microsoft.SharePoint)
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

Visual Basic (Declaration)
Public Property EnableVersioning As Boolean
Visual Basic (Usage)
Dim instance As SPList
Dim value As Boolean

value = instance.EnableVersioning

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

Property Value

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

Tags :


Community Content

bryan.phillips
Remarks are incorrect

In WSS 3.0 and MOSS 2007, versioning is available for both document libraries and lists.

Tags :

Page view tracker