共用方式為


ChangeTrackingAutoCleanUp 屬性

取得或設定布林屬性值,這個值會指定是否啟用 CHANGE_TRACKING_AUTO_CLEANUP OPTION。

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

語法

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

value = instance.ChangeTrackingAutoCleanUp

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

屬性值

型別:System. . :: . .Boolean
Boolean 值,這個值會指定在經過了指定的保留週期後,是否要自動移除變更追蹤資訊。如果啟用 ChangeTrackingAutoCleanUp,就會將所有先前自訂的保留週期重新設定為預設值:2 日。

實作

IDatabaseOptions. . :: . .ChangeTrackingAutoCleanUp