Export (0) Print
Expand All

SPFile.MajorVersion property

Gets the major version of the file.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

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:
© 2014 Microsoft