SPFile.UIVersionLabel property

Gets the version of the file.

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

public string UIVersionLabel { get; }

Property value

Type: System.String
A string that contains the version of the file, including the major and minor version numbers in the format "n.n".
Caution noteCaution

The format of this property value might change in a future release of SharePoint Foundation. Therefore, it is recommended that you not write code that specifies the format of a UI version label by either parsing or constructing the string that is contained by this property.