Compartilhar via


SPRestoreSettings.PreserveContentDatabaseChangeLog Property

Gets or sets a value that indicates whether the change log of the target content database should be preserved when a restoration overwrites the database.

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

Syntax

'Declaration
Public Property PreserveContentDatabaseChangeLog As Boolean
    Get
    Set
'Usage
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 if the change log should be preserved; otherwise false.

Remarks

Typically, the PreserveContentDatabaseChangeLog property is false, because the source database does not have exactly the same history as the target; but if you are migrating the database to new hardware, the PreserveContentDatabaseChangeLog property should be true.

See Also

Reference

SPRestoreSettings Class

SPRestoreSettings Members

Microsoft.SharePoint.Administration.Backup Namespace