ChangeTrackingAutoCleanUp 属性

获取或设置一个布尔属性值,该值指定是否启用 CHANGE_TRACKING_AUTO_CLEANUP 选项。

命名空间:  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