共用方式為


SPRestoreSettings.PreserveContentDatabaseChangeLog property

取得或設定一個值,指出還原覆寫的資料庫時,是否應該保留的目標內容資料庫的變更記錄。

Namespace:  Microsoft.SharePoint.Administration.Backup
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Property PreserveContentDatabaseChangeLog As Boolean
    Get
    Set
'用途
Dim instance As SPRestoreSettings
Dim value As Boolean

value = instance.PreserveContentDatabaseChangeLog

instance.PreserveContentDatabaseChangeLog = value
public bool PreserveContentDatabaseChangeLog { get; set; }

Property value

Type: System.Boolean
true如果應該保留變更記錄檔 ;否則false。

備註

一般而言, PreserveContentDatabaseChangeLog屬性是false,因為來源資料庫不具目標 ; 完全相同的記錄但是,如果您將資料庫移轉至新的硬體, PreserveContentDatabaseChangeLog屬性應該是true。

請參閱

參照

SPRestoreSettings class

SPRestoreSettings members

Microsoft.SharePoint.Administration.Backup namespace