This documentation is archived and is not being maintained.

SPList.MajorVersionLimit Property

Windows SharePoint Services 3

Gets or sets the maximum number of major versions allowed for an item in a document library that uses version control with major versions only.

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

public int MajorVersionLimit { get; set; }

Property Value

Type: System.Int32
An integer value indicating the maximum number of versions.