Condividi tramite


Proprietà CopyForeignKeys

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

Spazio dei nomi  Microsoft.SqlServer.Dts.Tasks.TransferSqlServerObjectsTask
Assembly:  Microsoft.SqlServer.TransferSqlServerObjectsTask (in Microsoft.SqlServer.TransferSqlServerObjectsTask.dll)

Sintassi

'Dichiarazione
Public Property CopyForeignKeys As Boolean
    Get
    Set
'Utilizzo
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)

Valore proprietà

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

Implementa

ITransferSqlServerObjectsTask. . :: . .CopyForeignKeys

Osservazioni

The default value is true.