共用方式為


SPContentDatabase members

Include protected members
Include inherited members

代表SharePoint Foundation部署中的內容資料庫。

The SPContentDatabase type exposes the following members.

Constructors

  Name Description
Public method SPContentDatabase 初始化SPContentDatabase類別的新執行個體。

Top

Properties

  Name Description
Protected property BuildVersion 取得快取的組建版本的資料庫。 (Inherited from SPDatabase.)
Public property CanMigrate Obsolete. 會傳回一個值,指出是否可移轉的內容資料庫。
Public property CanRenameOnRestore 取得 Boolean 值,指出已還原時,是否可以重新命名資料庫。 (Inherited from SPDatabase.)
Public property CanSelectForBackup 取得或設定 Boolean 值,以指定是否選取的資料庫物件及其子項管理中心使用者介面中的備份作業。 (Inherited from SPDatabase.)
Public property CanSelectForRestore 取得或設定 Boolean 值,以指定是否選取此物件及其子項管理中心使用者介面中還原作業。 (Inherited from SPDatabase.)
Public property CanUpgrade 取得一個值,指出是否可以升級物件。 (Inherited from SPPersistedUpgradableObject.)
Public property ConcurrentSiteUpgradeSessionLimit 取得或設定此限制在此資料庫上的可同時發生多少網站升級工作階段。
Public property CurrentChangeToken 會取得用來登入的內容資料庫的變更記錄檔的下一個修訂的變更 token。
Public property CurrentSiteCount 取得目前的數字表示的網站集合的內容資料庫中。
Public property DatabaseConnectionString 會取得用來連線至資料庫的連線字串。 (Inherited from SPDatabase.)
Public property DiskSizeRequired 會取得所需的備份的磁碟空間量。 (Inherited from SPDatabase.)
Public property DisplayName 取得說明系統管理使用者介面中的持續性的物件執行個體的顯示名稱。 (Inherited from SPPersistedObject.)
Public property Exists 取得 Boolean 值,指出資料庫是否存在。 (Inherited from SPDatabase.)
Public property ExistsInFarm 取得一個值,指出伺服器陣列中是否存在的內容資料庫。
Public property FailoverServer 取得SPServer物件,代表主控資料庫的鏡像伺服器。 (Inherited from SPDatabase.)
Public property FailoverServiceInstance 取得或設定代表裝載的資料庫鏡像的資料庫服務執行個體的SPDatabaseServiceInstance物件。 (Inherited from SPDatabase.)
Public property Farm 取得物件所在的伺服器陣列。 (Inherited from SPPersistedObject.)
Public property FollowableLists 取得集合包含所有可以遵循列出依最新的最後一個項目排序的內容資料庫中修改的日期。
Public property Id 取得或設定與物件關聯的 GUID。 (Inherited from SPPersistedObject.)
Public property IncludeInVssBackup 取得 Boolean 值,會指出資料庫是否包含在 Microsoft Visual SourceSafe 的元件] 清單中。 (Inherited from SPDatabase.)
Public property IsAttachedToFarm 取得一個值,指出是否要將內容資料庫附加至伺服器陣列。
Public property IsBackwardsCompatible 取得或設定一個值,指出目前物件是否回溯相容。 (Inherited from SPPersistedUpgradableObject.)
Public property IsPaired Obsolete. 取得或設定 Boolean 值,以指定是否要將內容資料庫配對Windows SharePoint Services 2.0內容資料庫。
Public property IsReadOnly 取得一個值,指出資料庫是唯讀屬性。 (Inherited from SPDatabase.)
Public property IsSqlAzure (Inherited from SPDatabase.)
Public property LastLanguageAndRegionSyncTime 取得或設定語言與區域同步處理執行的時間。
Public property LastMembershipSyncChangeToken 取得或設定的變更 token 最後一次此資料庫上執行成員資格同步處理。
Public property LastProfileSyncChangeToken 取得或設定的變更 token 最後一次此資料庫上執行使用者設定檔同步處理。
Public property LastProfileSyncTime 取得或設定此資料庫上執行使用者設定檔同步處理的最後一次的時間戳記。
Public property LastSearchCrawlSyncTime 取得或設定搜尋的上次同步處理時間。
Public property LastSweepSyncChangeToken 取得或設定的變更 token 最後一次此資料庫上執行延伸同步處理。
Public property LegacyDatabaseConnectionString 取得包含 OLEDB 連線字串的字串。 (Inherited from SPDatabase.)
Public property MaintenanceWindows 取得此資料庫的維護視窗集合。
Public property MaximumSiteCount 取得或設定內容資料庫中可以表示的網站數目上限。
Public property MultiSubnetFailover (Inherited from SPDatabase.)
Public property Name 取得或設定用來唯一地識別具有相同的父項和類別的兩個物件的名稱。 (Inherited from SPPersistedObject.)
Public property NeedsUpgrade 取得或設定 Boolean 值,以指定物件是否需要升級。 (Inherited from SPPersistedUpgradableObject.)
Public property NeedsUpgradeIncludeChildren 取得 Boolean 值,指出是否應該升級物件,考慮物件的子項。 (Inherited from SPPersistedUpgradableObject.)
Public property NormalizedDataSource 取得正規化的資料來源的資料庫。 (Inherited from SPDatabase.)
Public property Parent 取得父項的組態物件樹狀目錄之邏輯階層中。 (Inherited from SPPersistedObject.)
Public property Password 取得或設定用於 SQL 驗證的密碼。 (Inherited from SPDatabase.)
Public property PreferredTimerServiceInstance 取得或設定將會執行任何計時器工作對內容資料庫之計時器服務執行個體。
Public property Properties 取得保存物件的中繼資料。 (Inherited from SPPersistedObject.)
Public property RemoteBlobStorageSettings 取得包含設定決定如何將內容資料庫使用Microsoft SQL Server遠端 Blob 儲存的物件。
Public property RestoredTime 取得時間的內容資料庫已新增的或是還原至伺服器陣列,以 UTC 格式。
Public property SchemaVersionXml 取得與此[c]衍生類別相關聯之結構描述版本資訊。 (Inherited from SPDatabase.)
Public property SearchServiceInstance 取得或設定與內容資料庫相關聯的搜尋服務執行個體。
Public property Server 取得包含的內容資料庫的資料庫伺服器的名稱。
Public property ServiceInstance 取得擁有資料庫的 SQL 服務執行個體。 (Inherited from SPDatabase.)
Public property Sites 取得表示內容資料庫中的網站集合的集合。
Public property SiteSubscriptions 內容資料庫中取得的網站訂閱。
Public property Snapshots 取得快照的資料庫。 (Inherited from SPDatabase.)
Public property Status 取得或設定此類別代表物件的狀態。 (Inherited from SPPersistedObject.)
Public property TypeName 會取得用來說明管理使用者介面中的物件類型的顯示名稱。 (Overrides SPPersistedObject.TypeName.)
Public property UpgradeContext 取得目前的升級作業SPUpgradeContext 。 (Inherited from SPPersistedUpgradableObject.)
Public property UpgradedPersistedProperties 取得已刪除或變更的欄位的欄位名稱和值集合。 (Inherited from SPAutoSerializingObject.)
Public property Username 取得或設定用於 SQL 驗證登入的使用者名稱。 (Inherited from SPDatabase.)
Public property Version 取得一個值,每的次就遞增物件已更新。 (Inherited from SPPersistedObject.)
Public property WarningSiteCount 取得或設定之前警告事件產生及通知的網站集合擁有者可建立的網站數目。
Protected property WasCreated 取得 Boolean 值,指出物件是否已初始化,以及是否可以在資料庫中找到。 (Inherited from SPPersistedObject.)
Public property WebApplication 會取得使用的內容資料庫的 Web 應用程式。

Top

Methods

  Name Description
Public method AddBackupObjects 新增內容資料庫的備份/還原工作。 (Overrides SPDatabase.AddBackupObjects(SPBackupRestoreObject).)
Public method AddFailoverServiceInstance 識別要SharePoint Foundation伺服器與裝載的資料庫鏡像的資料庫服務執行個體。 (Inherited from SPDatabase.)
Public method AddSitesToUserSyncQueue 新增網站集合的網站集合,其中需要使用者資訊進行同步處理的佇列。
Public method ChangeDatabaseInstance(String) 修改指定名稱為每個連接字串,用來存取資料庫的資料庫服務執行個體。 (Inherited from SPDatabase.)
Public method ChangeDatabaseInstance(SPDatabaseServiceInstance) 修改每個連接字串,用來存取資料庫的指定的資料庫服務執行個體。 (Inherited from SPDatabase.)
Public method Clone 會傳回物件,不是來自於記憶體中快取,可讓呼叫的程式碼,以協助確保執行緒安全的複製物件。 (Inherited from SPPersistedObject.)
Public methodStatic member CreateUnattachedContentDatabase(SqlConnectionStringBuilder) 從指定的連接字串,資料庫會建立內容資料庫物件,而不將其登錄伺服器陣列設定資料庫中。
Public methodStatic member CreateUnattachedContentDatabase(String, String, String, String) 建立內容資料庫物件,使用指定的連線資訊,而不將其登錄伺服器陣列設定資料庫中。
Public method Delete 刪除內容資料庫。 (Overrides SPPersistedObject.Delete().)
Protected method DropRoleMember (Inherited from SPDatabase.)
Public method Equals 會決定目前保存的物件是否等於指定的物件。 (Inherited from SPPersistedObject.)
Protected method Finalize (Inherited from Object.)
Public method ForceDeleteSite 無法使用標準刪除方法時,則您可以移除內容資料庫的網站集合物件。
Public method GetActiveWorkItems 取得與指定之的工作項目類型為基礎的內容資料庫相關聯的工作項目集合。
Public method GetChanges() 會傳回預設的內容資料庫的目前變更記錄檔中列出的變更。
Public method GetChanges(SPChangeQuery) 從已篩選所指定的查詢的變更記錄檔,會傳回集合的變更。
Public method GetChanges(SPChangeToken) 會傳回集合的內容資料庫的變更,從指定的日期開始。
Public method GetChanges(SPChangeToken, SPChangeToken) 會傳回一群有已登入一段指定時間的變更。
Public method GetChild<T>() 會傳回指定類型為基礎的持續性物件的子系。 (Inherited from SPPersistedObject.)
Public method GetChild<T>(String) 會傳回指定名稱為基礎的持續性物件的子物件。 (Inherited from SPPersistedObject.)
Public method GetDeletedSite 取得已刪除的網站,以指定站台 id。
Public method GetHashCode 做為保存物件的雜湊函數。 (Inherited from SPPersistedObject.)
Public method GetMaintenanceWindow 會傳回其中ShouldNotify作業會傳回true的第一個維護視窗。
Public method GetObjectData 取得序列的物件的狀態。 (Inherited from SPAutoSerializingObject.)
Public method GetSitesFromSids 會傳回對應的網站集合至特定的安全性識別碼 (Sid)。
Public method GetSitesInUserSyncQueue 會傳回需要同步處理其使用者資訊清單的網站集合。
Public method GetType (Inherited from Object.)
Protected method GetVersionForId 會傳回識別碼所指定的升級順序相關聯的結構描述版本 (Inherited from SPDatabase.)
Public method GetWorkItems 做為輸出參數指定的工作項目集合中傳回個別的工作項目、 欄、 數及列數。
Protected method GrantAccess(SecurityIdentifier) 授與指定之的使用者資料庫的存取權。 (Inherited from SPDatabase.)
Protected method GrantAccess(SecurityIdentifier, String) 授與指定之的使用者資料庫的存取權,並將使用者新增至指定的角色。 (Inherited from SPDatabase.)
Public method GrantOwnerAccessToDatabaseAccount 將資料庫擁有者權限給資料庫存取帳戶。 (Inherited from SPDatabase.)
Protected method HasAdditionalUpdateAccess 覆寫此方法,以允許多個使用者更新物件。 (Inherited from SPPersistedObject.)
Public method Invalidate 無效的快取版本戳記及其他升級相關的旗標。 (Overrides SPDatabase.Invalidate().)
Public method IsEmpty 會決定是否空白資料庫。 (Inherited from SPDatabase.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Migrate() Obsolete. 移轉成對的內容資料庫之間的設定。
Public method Migrate(Boolean) Obsolete. 移轉設定成對的內容資料庫,以包括所有子系的選項。
Public method Move(SPContentDatabase, List<SPSite>, Dictionary<SPSite, String>) 將指定的網站從此內容資料庫移至指定的內容資料庫。
Public method Move(SPContentDatabase, List<SPSite>, Dictionary<String, String>, Dictionary<SPSite, String>) 將指定的網站從此內容資料庫移至指定的內容資料庫,並選擇性地指定的來源和目的地存放區提供者。
Public method OnAbort 引發中止 (備份) 的事件。 (Inherited from SPDatabase.)
Public method OnBackup 會引發備份事件。 (Inherited from SPDatabase.)
Public method OnBackupComplete 會引發 BackupComplete 事件。 (Inherited from SPDatabase.)
Protected method OnDeserialization (Inherited from SPDatabase.)
Public method OnPostRestore(SPDatabaseSnapshotRestoreEvent) 提供文章還原處理後被從其快照其中還原內容資料庫。
Public method OnPostRestore(Object, SPRestoreInformation) 會引發 PostRestore 事件。 (Overrides SPDatabase.OnPostRestore(Object, SPRestoreInformation).)
Public method OnPrepareBackup 會引發 PrepareBackup 事件。 (Overrides SPDatabase.OnPrepareBackup(Object, SPBackupInformation).)
Public method OnPreRestore(SPDatabaseSnapshotRestoreEvent) 提供從其快照其中的內容資料庫還原處理的準備。
Public method OnPreRestore(Object, SPRestoreInformation) 會引發 PreRestore 事件。 (Inherited from SPDatabase.)
Public method OnRestore 會引發的 Restore 事件。 (Overrides SPDatabase.OnRestore(Object, SPRestoreInformation).)
Public method Provision 建立內容資料庫。 (Overrides SPPersistedObject.Provision().)
Public method QueryFeatures(Guid) 會取得所有網站或網站範圍功能此內容資料庫中的具有特定功能識別碼。
Public method QueryFeatures(SPFeatureScope, Boolean) 會取得所有網站或網站範圍的功能,必須升級,或所有的不要,如指定。
Public method QueryFeatures(Guid, Boolean) 取得所有網站或網站範圍的功能,具有特定功能識別碼及,必須升級,或所有的不要,此內容資料庫中指定。
Public method QueryFeatures(Guid, Version) 會取得所有網站或網站範圍功能的內容資料庫中具有特定功能識別碼和版本。
Public method RefreshSitesInConfigurationDatabase 將內容資料庫與相對於哪些網站集合實際存在內容資料庫中的伺服器陣列設定資料庫同步處理。
Public method RemoveSiteFromUserSyncQueue 移除佇列需要同步處理其使用者資訊的網站的網站集合。
Public method Repair 修復的內容資料庫。
Public method ToString 會傳回所有階 (父項、 上二層,依此類推) 和物件的名稱與類型。 (Inherited from SPPersistedObject.)
Public method Uncache 釋放物件所使用的記憶體快取。 (Inherited from SPPersistedObject.)
Public method Unprovision 進行必要變更至本機伺服器,以清理之後刪除資料庫。 (Inherited from SPDatabase.)
Public method Update() 儲存內容資料庫的狀態,並將伺服器陣列中的所有電腦的變更傳播之後先確認伺服器陣列附加內容資料庫。 (Overrides SPDatabase.Update().)
Public method Update(Boolean) 會使物件以儲存狀態,並傳播到的所有電腦的伺服器陣列,選擇性地擲回例外狀況,如果物件已存在設定存放區中的變更。 (Inherited from SPPersistedObject.)
Protected method UpdateParent 會包含SPPersistedObject,若有的話,來更新其狀態。 (Inherited from SPAutoSerializingObject.)
Public method Upgrade() 升級物件。 (Inherited from SPPersistedUpgradableObject.)
Public method Upgrade(Boolean) 從舊的版本,將內容資料庫升級為目前的版本,使用升級升級階層中的所有子項的選項。 (Overrides SPDatabase.Upgrade(Boolean).)
Protected method Validate 驗證的內容資料庫的狀態之前保存它。 (Overrides SPPersistedObject.Validate().)
Public method ValidateBackwardsCompatibility 在 Web 前端 Dll 的驗證的內容資料庫結構描述的回溯相容性。內容資料庫進行連線,確認資料庫結構描述是相容每次呼叫此方法。 (Inherited from SPPersistedUpgradableObject.)
Protected method WarnAboutRemoteBlobStorageSettings 會傳回 Boolean 值,以指定是否系統管理員就會警告安裝該外部二進位大型物件 (BLOB) 存放區。 (Inherited from SPDatabase.)
Public method WriteFailedSiteInUserSyncQueue 記錄失敗的同步處理網站集合的使用者資訊。

Top

請參閱

參照

SPContentDatabase class

Microsoft.SharePoint.Administration namespace