SPFileVersionCollection Members

Include Protected Members
Include Inherited Members

Represents a collection of SPFileVersion objects.

The SPFileVersionCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of file version objects in the collection. (Overrides SPBaseCollection.Count.)
Public property File Gets the parent file object for the collection.
Public property Item Gets the file version object at the specified index in the collection. In C#, this property is the indexer for the SPFileVersionCollection class.
Public property UpgradedPersistedProperties Gets the collection of field names and values for fields that were deleted or changed. (Inherited from SPAutoSerializingObject.)
Public property Web Gets the SharePoint site to which the parent file for the collection belongs.

Top

Methods

  Name Description
Public method Delete Deletes the file version object at the specified index in the collection.
Public method DeleteAll Deletes all the file version objects in the collection.
Public method DeleteAllMinorVersions Deletes all the minor file version objects in the collection.
Public method DeleteByID Deletes the file version object with the specified integer ID from the collection.
Public method DeleteByLabel Deletes the file version object with the specified version label.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Retrieves the data required to serialize the object. (Inherited from SPAutoSerializingObject.)
Public method GetType (Inherited from Object.)
Public method GetVersionFromID Returns the file version object with the specified ID.
Public method GetVersionFromLabel Returns the file version object that has the specified version label.
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnDeserialization Called after the object has been deserialized from the file system cache or the database. (Inherited from SPAutoSerializingObject.)
Public method RecycleAll Recycles all file version objects in the collection.
Public method RecycleAllMinorVersions Recycles all minor file version objects in the collection.
Public method Restore Restores the file version object at the specified index in the collection.
Public method RestoreByID Restores the file version object that has the specified integer ID to the collection.
Public method RestoreByLabel Restores the file version object that has the specified version label.
Public method ToString (Inherited from Object.)
Protected method UpdateParent Causes the containing SPPersistedObject, if one exists, to update its state. (Inherited from SPAutoSerializingObject.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ICollection.CopyTo (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.SyncRoot (Inherited from SPBaseCollection.)

Top

See Also

Reference

SPFileVersionCollection Class

Microsoft.SharePoint Namespace