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
Syntax
'Declaration
<ClientCallableAttribute> _
Public ReadOnly Property MajorVersion As Integer
Get
'Usage
Dim instance As SPFile
Dim value As Integer
value = instance.MajorVersion
[ClientCallableAttribute]
public int MajorVersion { get; }
Property Value
Type: System.Int32
A 32-bit integer that indicates the major version.
Remarks
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.