Database.ChangeTrackingAutoCleanUp 属性
Gets or sets a value that specifies whether the CHANGE_TRACKING_AUTO_CLEANUP OPTION is enabled.
命名空间: 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
A Boolean value that specifies whether change tracking information is automatically removed after the specified retention period. Enabling ChangeTrackingAutoCleanUp resets any previous custom retention period to the default retention period of 2 days.
实现
IDatabaseOptions.ChangeTrackingAutoCleanUp
请参阅
参考
Microsoft.SqlServer.Management.Smo 命名空间