Share via


SPFileVersion.VersionLabel Property

Gets the version as a string.

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 VersionLabel As String
    Get
'Usage
Dim instance As SPFileVersion
Dim value As String

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