Compartilhar via


SPList.MajorVersionLimit Property

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

Syntax

'Declaration
Public Property MajorVersionLimit As Integer
    Get
    Set
'Usage
Dim instance As SPList
Dim value As Integer

value = instance.MajorVersionLimit

instance.MajorVersionLimit = value
public int MajorVersionLimit { get; set; }

Property Value

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

See Also

Reference

SPList Class

SPList Members

Microsoft.SharePoint Namespace