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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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.StringA 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