SPListItemVersionCollection 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. | |
Web | Gets the parent website of the version collection. |
Top
Methods
Name | Description | |
---|---|---|
DeleteAll | Deletes all of the items in the collection except for the current version. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetEnumerator | Gets an enumerator to iterate through the collection. (Inherited from SPBaseCollection.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
GetTypedEnumerator<T> | Returns a type-safe enumerator to iterate through the collection. (Inherited from SPBaseCollection.) | |
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.) | |
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 version with 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.) |
Top
Explicit interface implementations
Name | Description | |
---|---|---|
ICollection.CopyTo | Copies the elements of the collection to an array, starting at the specified array index. (Inherited from SPBaseCollection.) | |
ICollection.IsSynchronized | Gets a Boolean value that indicates whether access to the collection is synchronized or thread-safe. (Inherited from SPBaseCollection.) | |
ICollection.SyncRoot | Gets an object that is used to synchronize access to the collection. (Inherited from SPBaseCollection.) |
Top