SPFile.UIVersionLabel property

Gets the version of the file.

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

Syntax

'Declaration
Public ReadOnly Property UIVersionLabel As String
    Get
'Usage
Dim instance As SPFile
Dim value As String

value = instance.UIVersionLabel
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".

Warning

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.

See also

Reference

SPFile class

SPFile members

Microsoft.SharePoint namespace