Share via


TransferSqlServerObjectsTask.CopyForeignKeys Property

Gets or sets a Boolean indicating whether foreign keys are transferred from the source to the target database.

Namespace:  Microsoft.SqlServer.Dts.Tasks.TransferSqlServerObjectsTask
Assembly:  Microsoft.SqlServer.TransferSqlServerObjectsTask (in Microsoft.SqlServer.TransferSqlServerObjectsTask.dll)

Syntax

'Declaration
Public Property CopyForeignKeys As Boolean
    Get
    Set
'Usage
Dim instance As TransferSqlServerObjectsTask
Dim value As Boolean

value = instance.CopyForeignKeys

instance.CopyForeignKeys = value
public bool CopyForeignKeys { get; set; }
public:
virtual property bool CopyForeignKeys {
    bool get () sealed;
    void set (bool value) sealed;
}
abstract CopyForeignKeys : bool with get, set
override CopyForeignKeys : bool with get, set
final function get CopyForeignKeys () : boolean
final function set CopyForeignKeys (value : boolean)

Property Value

Type: System.Boolean
true indicates that foreign keys are transferred from the source to the target database.

Implements

ITransferSqlServerObjectsTask.CopyForeignKeys

Remarks

The default value is true.