Share via


SPSiteCollection members

Include protected members
Include inherited members

代表SPSite物件的集合或與特定的 Web 應用程式,包括頂層網站和其所有子網站相關聯的網站集合。每個SPSite物件或網站集合,代表內SPSiteCollection物件所組成的 Web 應用程式中的所有網站集合的集合。

The SPSiteCollection type exposes the following members.

Properties

  Name Description
Public property Count 集合中取得SPSite物件的數目。 (Overrides SPBaseCollection.Count.)
Public property Item[Int32] 取得SPSite物件在集合中的指定索引處。在 C# 中,這個屬性會是SPSiteCollection類別的索引器。
Public property Item[String] 取得SPSite物件在集合中指定的伺服器相對 URL。
Public property Names 取得集合中的所有SPSite物件的伺服器相對 Url。
Public property UpgradedPersistedProperties 取得已刪除或變更的欄位的欄位名稱和值集合。 (Inherited from SPAutoSerializingObject.)
Public property VirtualServer Obsolete. 取得上層網站集合的虛擬伺服器。
Public property WebApplication 取得此集合內的集合會儲存在哪個網站的 Web 應用程式。

Top

Methods

  Name Description
Public method Add(String, String, String) 建立根據指定的 URL 及網站集合的擁有者的使用者名稱和電子郵件地址的SPSite物件。
Public method Add(String, String, String, UInt32, String, String, String, String) 根據指定的 URL、 標題、 描述、 地區設定識別碼 (LCID) 和網站定義或網站範本,以及在使用者名稱、 使用者顯示名稱,與網站集合的擁有者的電子郵件地址集合中建立SPSite物件。
Public method Add(String, String, String, UInt32, String, String, String, String, String, String, String) 根據指定的 URL、 標題、 描述、 地區設定識別碼 (LCID) 和網站定義或網站範本,以及在使用者名稱、 使用者顯示名稱,與網站集合的擁有者的電子郵件地址集合中建立SPSite物件。
Public method Add(String, String, String, UInt32, Int32, String, String, String, String, String, String, String) 會根據指定的 URL、 標題、 描述、 地區設定識別碼 (LCID)、 相容性層級和網站定義或網站範本,以及在使用者名稱、 使用者顯示名稱,與集合的擁有者和第二位連絡人的電子郵件地址集合中建立的 SPSite 物件。
Public method Add(String, String, String, UInt32, String, String, String, String, String, String, String, Boolean) 根據指定的 URL、 標題、 描述、 地區設定識別碼 (LCID) 和網站定義或網站範本,以及在使用者名稱、 使用者顯示名稱,與集合的擁有者和第二位連絡人的電子郵件地址集合中建立SPSite物件。
Public method Add(SPSiteSubscription, String, String, String, UInt32, String, String, String, String, String, String, String, Boolean) 根據指定的網站訂閱、 URL、 標題、 描述、 地區設定識別碼 (LCID) 和網站定義或網站範本,以及在使用者名稱、 使用者顯示名稱,與集合的擁有者和第二位連絡人的電子郵件地址集合中建立SPSite物件。
Public method Add(String, String, String, UInt32, Int32, String, String, String, String, String, String, String, Boolean) 會根據指定的 URL、 標題、 描述、 地區設定識別碼 (LCID)、 相容性層級和網站定義或網站範本,以及在使用者名稱、 使用者顯示名稱,與集合的擁有者和第二位連絡人的電子郵件地址集合中建立的 SPSite 物件。
Public method Add(SPSiteSubscription, String, String, String, UInt32, Int32, String, String, String, String, String, String, String, Boolean) 會建立新的網站,網站訂閱。
Public method Add(String, String, String, UInt32, String, String, String, String, String, String, String, String, String, String, String) 根據指定的 URL、 標題、 描述、 地區設定識別碼 (LCID) 和網站定義或網站範本,以及在使用者名稱、 使用者顯示名稱,與電子郵件地址集合的擁有者及第二位連絡人,並在資料庫伺服器、 新的資料庫名稱與使用者名稱和資料庫管理員的密碼集合中建立SPSite物件。
Public method Add(SPSiteSubscription, String, String, String, UInt32, String, String, String, String, String, String, String, String, String, String, String) 根據指定的網站訂閱、 URL、 標題、 描述、 地區設定識別碼 (LCID) 和網站定義或網站範本,以及在使用者名稱、 使用者顯示名稱,與電子郵件地址集合的擁有者及第二位連絡人,並在資料庫伺服器、 新的資料庫名稱與使用者名稱和資料庫管理員的密碼集合中建立SPSite物件。
Public method Add(String, String, String, UInt32, Int32, String, String, String, String, String, String, String, String, String, String, String) 在新的內容資料庫中建立新的網站。
Public method Add(SPSiteSubscription, String, String, String, UInt32, Int32, String, String, String, String, String, String, String, String, String, String, String) 在新的內容資料庫中建立新的網站。
Public method Backup 建立位於指定之 URL 的網站集合的備份檔案。
Public method Delete(String) 從集合中刪除指定之的SPSite物件。
Public method Delete(String, Boolean) 從與刪除此網站集合所建立的 Active Directory 網域服務帳戶的選項集合中刪除指定之的SPSite物件。
Public method Delete(String, Boolean, Boolean) 從與刪除此網站集合所建立的 Active Directory 網域服務帳戶的選項集合中刪除指定的 SPSite 物件。
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData 取得序列的物件的狀態。 (Inherited from SPAutoSerializingObject.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnDeserialization 物件已經從檔案系統快取或資料庫還原序列化之後呼叫。 (Inherited from SPAutoSerializingObject.)
Public method Restore(String, String, Boolean) 還原指定的SPSite物件的集合。
Public method Restore(String, String, Boolean, Boolean) 還原指定的SPSite物件的集合,並指定是否要使用的主機標頭做為網站集合的名稱。
Public method ToString (Inherited from Object.)
Protected method UpdateParent 會包含SPPersistedObject,若有的話,來更新其狀態。 (Inherited from SPAutoSerializingObject.)

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable<SPSite>.GetEnumerator 會傳回來逐一查看集合的列舉值。

Top

請參閱

參照

SPSiteCollection class

Microsoft.SharePoint.Administration namespace