SPList Properties


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

Visual Basic (Declaration)
Public Property MajorVersionLimit As Integer
Visual Basic (Usage)
Dim instance As SPList
Dim value As Integer

value = instance.MajorVersionLimit

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

Property Value

An integer value indicating the maximum number of versions.
See Also

Tags :


Community Content

AshishDotNet
Why are all the properties not available for update through webservice!!!
I am not able to update MajorVersionLimit property of list using web service. I used following xml node to set this property:
<List MajorVersionLimit="6" />  
Tags :

Page view tracker