Udostępnij za pośrednictwem


Właściwość Database.ChangeTrackingRetentionPeriod

Pobiera lub ustawia wartość CHANGE_TRACKING_RETENTION_PERIOD.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Deploy)> _
Public Property ChangeTrackingRetentionPeriod As Integer
    Get
    Set
'Użycie
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)

Wartość właściwości

Typ: System.Int32
A Int32 , który określa minimalny okres, aby zachować informacje śledzenia.

Implementacje

IDatabaseOptions.ChangeTrackingRetentionPeriod

Uwagi

A ChangeTrackingRetentionPeriod Określa minimalny okres przechowywania informacji śledzenia zmian w bazie danych.Dane zostaną usunięte tylko wtedy, gdy wartość Auto Oczyść jest True.