Database.ChangeTrackingRetentionPeriodUnits 属性
Gets or sets the unit type for a 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 ChangeTrackingRetentionPeriodUnits As RetentionPeriodUnits
Get
Set
用法
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)
属性值
类型:Microsoft.SqlServer.Management.Smo.RetentionPeriodUnits
A RetentionPeriodUnits type that specifies the units for the Retention Period value.
实现
IDatabaseOptions.ChangeTrackingRetentionPeriodUnits
注释
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.
请参阅
参考
Microsoft.SqlServer.Management.Smo 命名空间