SPList.MajorWithMinorVersionsLimit Property

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

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public int MajorWithMinorVersionsLimit { get; set; }

Property Value

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