Bagikan melalui


RestoreOptions.KeepReplication Property

Gets or sets whether to prevent replication settings from being removed when a database backup or log backup is restored on a warm standby server and the database is recovered.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)

Syntax

'Declaration
Public Property KeepReplication As Boolean 
    Get 
    Set
'Usage
Dim instance As RestoreOptions 
Dim value As Boolean 

value = instance.KeepReplication

instance.KeepReplication = value
public bool KeepReplication { get; set; }
public:
property bool KeepReplication {
    bool get ();
    void set (bool value);
}
member KeepReplication : bool with get, set
function get KeepReplication () : boolean 
function set KeepReplication (value : boolean)

Property Value

Type: System.Boolean
True when prevent replication settings from being removed; otherwise, false.

See Also

Reference

RestoreOptions Class

Microsoft.SqlServer.Management.Smo Namespace