SPListItem.Versions Property (Microsoft.SharePoint)
Gets the collection of item version objects that represent the versions of the item.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Syntax

Visual Basic (Declaration)
Public ReadOnly Property Versions As SPListItemVersionCollection
Visual Basic (Usage)
Dim instance As SPListItem
Dim value As SPListItemVersionCollection

value = instance.Versions
C#
public SPListItemVersionCollection Versions { get; }

Property Value

An SPListItemVersionCollection object that represents the item versions.
See Also

Tags :


Community Content

Sebastian.Wojciechowski
Order of the versions in collection
SPListItem.Versions[0] //this is current version of the item
 
SPListItem.Versions[1] //this is previous version of the item
 
SPListItem.Versions[SPListItem.Versions.Count - 1] //this is first version of the item
Tags :

Page view tracker