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)

public SPListItemVersion GetVersionFromLabel(
	string 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.