Gets or sets a Boolean property value that specifies whether to maintain a replication configuration during a restore operation.
Assembly: Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)
The following code example demonstrates how to set a replication configuration so that it will be saved during a restore operation.
Dim rs As Restore rs = New Restore rs.KeepReplication = true
$rs = new-object Microsoft.SqlServer.Management.Smo.Restore $rs.KeepReplication = $TRUE