Поделиться через


Свойство RetainDays

Gets or sets the number of days that must elapse before a backup set can be overwritten.

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.SmoExtended (в Microsoft.SqlServer.SmoExtended.dll)

Синтаксис

'Декларация
Public Property RetainDays As Integer
    Get
    Set
'Применение
Dim instance As Backup
Dim value As Integer

value = instance.RetainDays

instance.RetainDays = value
public int RetainDays { get; set; }
public:
property int RetainDays {
    int get ();
    void set (int value);
}
member RetainDays : int with get, set
function get RetainDays () : int
function set RetainDays (value : int)

Значение свойства

Тип System. . :: . .Int32
An Int32 value that specifies the retention period in days. By default, the value is set to zero.

Замечания

Backup set retention period is set when media is initialized. When using SQL Server Management Objects (SMO) to automate Microsoft SQL Server backup, the RetainDays property is only evaluated when the Initialize property is True.