共用方式為


SPFileVersionCollection members

Include protected members
Include inherited members

表示SPFileVersion物件的集合。

The SPFileVersionCollection type exposes the following members.

Properties

  Name Description
Public property Count 取得集合中的檔案版本的物件數目。 (Overrides SPBaseCollection.Count.)
Public property File 取得集合的父檔案物件。
Public property Item 取得集合中指定之索引處的物件檔案版本。在 C# 中,這個屬性會是SPFileVersionCollection類別的索引子。
Public property Web 取得集合的父檔案所屬的 SharePoint 網站。

Top

Methods

  Name Description
Public method Delete 刪除集合中指定之索引處的檔案版本物件。
Public method DeleteAll 刪除集合中的所有檔案版本物件。
Public method DeleteAllMinorVersions 刪除所有次要檔案版本中的物件集合。
Public method DeleteByID 從集合中移除指定的整數識別碼的檔案版本物件。
Public method DeleteByLabel 刪除具有指定版本標籤的檔案版本物件。
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator 取得列舉值來逐一查看集合。 (Inherited from SPBaseCollection.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GetTypedEnumerator<T> 傳回逐一查看集合的型別安全列舉值。 (Inherited from SPBaseCollection.)
Public method GetVersionFromID 傳回具有指定 ID 的檔案版本物件
Public method GetVersionFromLabel 傳回具有指定的版本標籤的檔案版本物件。
Protected method MemberwiseClone (Inherited from Object.)
Public method RecycleAll 回收在集合中的所有檔案版本物件。
Public method RecycleAllMinorVersions 回收所有的次要檔案版本物件,集合中。
Public method Restore 還原檔案版本物件在集合中指定之索引處。
Public method RestoreByID(Int32) 還原檔案版本物件具有指定之 ID 的集合。
Public method RestoreByID(Int32, String) 還原檔案版本物件具有集合的指定的版本識別碼與指定的鎖定識別碼。
Public method RestoreByLabel 還原檔案版本物件具有指定的版本標籤。
Public method ToString (Inherited from Object.)

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method ICollection.CopyTo 陣列,指定的陣列索引處開始複製集合的項目。 (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized 取得布林值,這個值,指出對集合的存取是否同步處理或安全執行緒。 (Inherited from SPBaseCollection.)
Explicit interface implemetationPrivate property ICollection.SyncRoot 取得用於同步化存取集合的物件。 (Inherited from SPBaseCollection.)

Top

請參閱

參照

SPFileVersionCollection class

Microsoft.SharePoint namespace