Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
SPListItem Class
 Versions Property
Community Content
In this section
Statistics Annotations (1)
Collapse All/Expand All Collapse All
This page is specific to
The 2007 product release

Other versions are also available for the following:
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)
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.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Order of the versions in collection      Sebastian.Wojciechowski   |   Edit   |   Show History
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 What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker