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)
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