CopyPrimaryKeys 属性

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

命名空间:  Microsoft.SqlServer.Dts.Tasks.TransferSqlServerObjectsTask
程序集:  Microsoft.SqlServer.TransferSqlServerObjectsTask(在 Microsoft.SqlServer.TransferSqlServerObjectsTask.dll 中)

语法

声明
Public Property CopyPrimaryKeys As Boolean
    Get
    Set
用法
Dim instance As TransferSqlServerObjectsTask
Dim value As Boolean

value = instance.CopyPrimaryKeys

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

属性值

类型:System. . :: . .Boolean
true indicates that primary keys are transferred from the source to the target database.

实现

ITransferSqlServerObjectsTask. . :: . .CopyPrimaryKeys

注释

The default value is true.