Share via


SPFile.UIVersionLabel Property

Gets the 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> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull)> _
Public ReadOnly Property UIVersionLabel As String
    Get
'Usage
Dim instance As SPFile
Dim value As String

value = instance.UIVersionLabel
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
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