SP.File.majorVersion Property
Applies to: SharePoint Foundation 2010
Gets a value that specifies the major version of the file.
var value = SP.File.get_majorVersion();
Property Value
Type: Int32
Applies To
Exceptions
- ArgumentException
Version information is missing, invalid, or could not be retrieved. Error code: - 2147024809.
- FileNotFoundException
File cannot be found. Error code: -2147024894.
- UnauthorizedAccessException
The current user has insufficient permissions. Error code: -2147024891.