Database.ChangeTrackingRetentionPeriod 属性

Gets or sets the CHANGE_TRACKING_RETENTION_PERIOD value.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Deploy)> _
Public Property ChangeTrackingRetentionPeriod As Integer 
    Get 
    Set
用法
Dim instance As Database 
Dim value As Integer 

value = instance.ChangeTrackingRetentionPeriod

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

属性值

类型:System.Int32
A Int32 that specifies the minimum period to retain tracing information.

实现

IDatabaseOptions.ChangeTrackingRetentionPeriod

注释

A ChangeTrackingRetentionPeriod Specifies the minimum period for keeping change track information in the database. Data is removed only if the Auto Clean-Up value is True.

请参阅

参考

Database 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

启用和禁用更改跟踪 (SQL Server)