共用方式為


SPFileCollection members

Include protected members
Include inherited members

表示SPFile物件的集合。

The SPFileCollection type exposes the following members.

Properties

  Name Description
Public property Count 取得集合中的檔案數目。 (Overrides SPBaseCollection.Count.)
Public property Folder 取得集合的上層資料夾。
Public property Item[Int32] 取得集合中指定之索引處的檔案物件。在 [Microsoft 視覺化 C#,這個屬性會是SPFileCollection類別的索引子。
Public property Item[String] 從集合中取得具有指定 URL 的檔案物件。在 [Microsoft 視覺化 C#,這個屬性會是SPFileCollection類別的索引子。
Public property Web 取得集合所屬的站台。

Top

Methods

  Name Description
Public method Add(String, SPTemplateFileType) 使用指定的 URL 和範本的檔案類型的集合中建立的檔案。
Public method Add(String, []) 使用指定的 URL 和位元組陣列,包含檔案集合中建立的檔案。
Public method Add(String, Stream) 使用指定的 URL 和包含的檔案內容的資料流的集合中建立的檔案。
Public method Add(String, [], SPFileCollectionAddParameters) 使用指定的 URL,位元組陣列,包含檔案和SPFileCollectionAddParameters物件的內容集合中建立的檔案。
Public method Add(String, [], Boolean) 使用指定的 URL、 位元組陣列,包含檔案的內容和布林值,指定是否要覆寫任何檔案,具有相同名稱的集合中建立的檔案。
Public method Add(String, [], Hashtable) 使用指定的 URL、 位元組陣列,包含檔案的內容,以及包含該檔案的中繼資料的雜湊表集合中建立的檔案。
Public method Add(String, Stream, SPFileCollectionAddParameters) 使用指定的 URL 包含的檔案,而SPFileCollectionAddParameters物件內容的資料流的集合中建立的檔案。
Public method Add(String, Stream, Boolean) 使用指定的 URL、 資料流,包含檔案的內容和布林值,指定是否要覆寫任何檔案,具有相同名稱的集合中建立的檔案。
Public method Add(String, Stream, Hashtable) 使用指定的 URL 包含的檔案,內容的資料流,包含檔案的中繼資料的雜湊表集合中建立的檔案。
Public method Add(String, [], Hashtable, Boolean) 使用指定的 URL、 位元組陣列,包含檔案的內容,包含檔案的中繼資料的雜湊表和布林值,指定是否要覆寫任何檔案,具有相同名稱的集合中建立的檔案。
Public method Add(String, Stream, Hashtable, Boolean) 使用指定的 URL、 包含檔案的內容的資料流,包含檔案的中繼資料的雜湊表和布林值,指定是否要覆寫任何檔案,具有相同名稱的集合中建立的檔案。
Public method Add(String, [], Boolean, String, Boolean) 使用指定的 URL、 位元組陣列,包含檔案的內容、 布林值,指定是否要覆寫具有相同的名稱、 簽入註解和布林值,指定是否要檢查必要的欄位的任何檔案集合中建立的檔案。
Public method Add(String, Stream, Boolean, String, Boolean) 使用指定的 URL,包含檔案的內容的資料流、 布林值,指定是否要覆寫具有相同的名稱、 簽入註解和布林值,指定是否要檢查必要的欄位的任何檔案集合中建立的檔案。
Public method Add(String, Stream, Hashtable, Boolean, Boolean) 根據指定的 URL、 的Stream物件,包含檔案,以及包含該檔案的中繼資料的雜湊資料表的集合中建立的檔案。
Public method Add(String, [], SPUser, SPUser, DateTime, DateTime) 使用指定的 URL,位元組陣列,包含檔案的內容,表示建立和上次修改檔案,並且時一樣,指定的DateTime值的使用者的使用者物件的集合中建立的檔案。
Public method Add(String, Stream, SPUser, SPUser, DateTime, DateTime) 使用指定的 URL,包含檔案的內容,表示建立和上次修改檔案,並且時一樣,指定的DateTime值的使用者的使用者物件的資料流的集合中建立的檔案。
Public method Add(String, Stream, Boolean, Boolean, Stream, String) 使用指定的 URL,包含檔案、 布林值,指定是否要覆寫任何檔案,具有相同的名稱、 布林值,指定是否要檢查必要的欄位、 包含檔案格式的中繼資料,以及用來接收 ETag 輸出變數的資料流的內容資料流的集合中建立的檔案。
Public method Add(String, [], Hashtable, SPUser, SPUser, DateTime, DateTime, Boolean) 使用指定的 URL,包含檔案的內容的位元組陣列,包含檔案的中繼資料表示的使用者建立及上次修改檔案時一樣,指定的DateTime值,指定是否要覆寫任何檔案具有相同名稱的Boolean值的使用者物件的雜湊表集合中建立的檔案。
Public method Add(String, Stream, Hashtable, SPUser, SPUser, DateTime, DateTime, String, Boolean) 建立使用指定的 URL 包含的檔案,包含檔案的中繼資料的雜湊表、 使用者物件,表示建立和上次修改檔案,而指定時一樣, DateTime值的使用者內容的資料流在集合中的檔案簽入註解和布林值,指定是否要覆寫任何具有相同名稱的檔案。
Public method Add(String, Stream, Hashtable, SPUser, SPUser, DateTime, DateTime, String, Boolean, Boolean) 根據指定的 URL、 上包含的檔案,包含檔案的中繼資料的Hashtable物件的Stream物件、 SPUser物件代表的使用者建立及上次修改檔案,以及DateTime值將用以指定時一樣,集合中建立的檔案。
Public method Delete 刪除位於指定 URL 的檔案。
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.)
Protected method MemberwiseClone (Inherited from Object.)
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

請參閱

參照

SPFileCollection class

Microsoft.SharePoint namespace