Share via


SPFileVersion.VersionLabel property

Gets the version as a string.

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

Syntax

'Declaration
Public ReadOnly Property VersionLabel As String
    Get
'Usage
Dim instance As SPFileVersion
Dim value As String

value = instance.VersionLabel
public string VersionLabel { get; }

Property value

Type: System.String
A string containing the version in the format n.n, for example, 3.1.

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

SPFileVersion class

SPFileVersion members

Microsoft.SharePoint namespace