共用方式為


ChangeTrackingEnabled 屬性

取得或設定屬性值,這個值會指定是否啟用 CHANGE_TRACKING_VALUE 選項。

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Deploy)> _
Public Property ChangeTrackingEnabled As Boolean
    Get
    Set
'用途
Dim instance As Database
Dim value As Boolean

value = instance.ChangeTrackingEnabled

instance.ChangeTrackingEnabled = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.Deploy)]
public bool ChangeTrackingEnabled { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::Deploy)]
public:
virtual property bool ChangeTrackingEnabled {
    bool get () sealed;
    void set (bool value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.Deploy)>]
abstract ChangeTrackingEnabled : bool with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.Deploy)>]
override ChangeTrackingEnabled : bool with get, set
final function get ChangeTrackingEnabled () : boolean
final function set ChangeTrackingEnabled (value : boolean)

屬性值

型別:System. . :: . .Boolean
Boolean 值,這個值會指定是否儲存變更追蹤資訊。

實作

IDatabaseOptions. . :: . .ChangeTrackingEnabled

備註

Use to enable or disable change tracking for the database. To enable change tracking, you must have permission to modify the database. Setting ChangeTrackingEnabled to True sets a database option that allows change tracking to be enabled on individual tables.