SPListItemVersionCollection Members

Include Protected Members
Include Inherited Members

Represents a collection of SPListItemVersion objects.

The SPListItemVersionCollection type exposes the following members.

Properties

Name Description
Count Gets the number of versions in the collection. (Overrides SPBaseCollection.Count.)
Item Gets the version at the specified index in the collection.
ListItem Gets the parent list item of the version collection.
UpgradedPersistedProperties Gets the collection of field names and values for fields that were deleted or changed. (Inherited from SPAutoSerializingObject.)
Web Gets the parent Web site of the version collection.

Top

Methods

Name Description
DeleteAll Deletes the collection of versions except for the current version.
Equals (Inherited from Object.)
Finalize (Inherited from Object.)
GetHashCode (Inherited from Object.)
GetObjectData Retrieves the data required to serialize the object. (Inherited from SPAutoSerializingObject.)
GetType (Inherited from Object.)
GetVersionFromID Returns a version from the collection based on the specified version ID.
GetVersionFromLabel Returns a version from the collection based on the specified version label.
MemberwiseClone (Inherited from Object.)
OnDeserialization Called after the object has been deserialized from the file system cache or the database. (Inherited from SPAutoSerializingObject.)
RecycleAll Recycles the version collection except for the current version.
Restore Restores the specified version as the current item version based on the specified index in the collection.
RestoreByID Restores the specified version as the current item version based on the specified version ID.
RestoreByLabel Restores the specified version as the current item version based on the specified version label.
ToString (Inherited from Object.)
UpdateParent Causes the containing SPPersistedObject, if one exists, to update its state. (Inherited from SPAutoSerializingObject.)

Top

Explicit Interface Implementations

Name Description
ICollection.CopyTo (Inherited from SPBaseCollection.)
IEnumerable.GetEnumerator (Inherited from SPBaseCollection.)
ICollection.IsSynchronized (Inherited from SPBaseCollection.)
ICollection.SyncRoot (Inherited from SPBaseCollection.)

Top

See Also

Reference

SPListItemVersionCollection Class

Microsoft.SharePoint Namespace