Share via


Propriété ChangeTrackingRetentionPeriodUnits

Obtient ou définit le type d'unité d'une valeur de période de rétention.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Deploy)> _
Public Property ChangeTrackingRetentionPeriodUnits As RetentionPeriodUnits
    Get
    Set
'Utilisation
Dim instance As Database
Dim value As RetentionPeriodUnits

value = instance.ChangeTrackingRetentionPeriodUnits

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

Valeur de propriété

Type : Microsoft.SqlServer.Management.Smo. . :: . .RetentionPeriodUnits
Type RetentionPeriodUnits qui spécifie les unités de la valeur Période de rétention.

Implémente

IDatabaseOptions. . :: . .ChangeTrackingRetentionPeriodUnits

Notes

You can select Minutes, Hours, Days, Weeks, Months or Years. The default value is Days. The minimum retention period is 1 minute. There is no maximum retention period.