SPFile.MajorVersion Property

Gets the major version of the file.

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

[ClientCallableAttribute]
public int MajorVersion { get; }

Property Value

Type: System.Int32
A 32-bit integer that indicates the major version.

A version number consists of a major and a minor version. For example, the version number 3.2 specifies “3” as the major version and “2” as the minor version.

Show: