SPListItemVersionCollection.GetVersionFromID Method
Returns a version from the collection based on the specified version ID.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Function GetVersionFromID ( _
versionId As Integer _
) As SPListItemVersion
'Usage
Dim instance As SPListItemVersionCollection
Dim versionId As Integer
Dim returnValue As SPListItemVersion
returnValue = instance.GetVersionFromID(versionId)
public SPListItemVersion GetVersionFromID(
int versionId
)
Parameters
versionId
Type: System.Int32A 32-bit integer that specifies the ID of the version to return, for example, 512, 1024, or 1536. For more information, see VersionId.
Return Value
Type: Microsoft.SharePoint.SPListItemVersion
An SPListItemVersion object that represents the version.
See Also
Reference
SPListItemVersionCollection Class