SPListItemVersionCollection.GetVersionFromLabel method

Returns a version from the collection based on the specified version label.

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

Syntax

'Declaration
Public Function GetVersionFromLabel ( _
    versionLabel As String _
) As SPListItemVersion
'Usage
Dim instance As SPListItemVersionCollection
Dim versionLabel As String
Dim returnValue As SPListItemVersion

returnValue = instance.GetVersionFromLabel(versionLabel)
public SPListItemVersion GetVersionFromLabel(
    string versionLabel
)

Parameters

  • versionLabel
    Type: System.String

    A string that specifies the version label of the version to return. For information about the format of version labels, see VersionLabel.

Return value

Type: Microsoft.SharePoint.SPListItemVersion
An SPListItemVersion object that represents the version.

See also

Reference

SPListItemVersionCollection class

SPListItemVersionCollection members

Microsoft.SharePoint namespace