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


Свойство JobSchedule.ActiveEndDate

Gets or sets the date and time when the schedule ends.

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

Синтаксис

'Декларация
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property ActiveEndDate As DateTime 
    Get 
    Set
'Применение
Dim instance As JobSchedule 
Dim value As DateTime 

value = instance.ActiveEndDate

instance.ActiveEndDate = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public DateTime ActiveEndDate { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property DateTime ActiveEndDate {
    DateTime get ();
    void set (DateTime value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member ActiveEndDate : DateTime with get, set
function get ActiveEndDate () : DateTime 
function set ActiveEndDate (value : DateTime)

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

Тип: System.DateTime
A DateTime value that specifies the date and time when the job schedule ends.

Замечания

Scheduled SQL Server Agent jobs can have start and end dates. A job is run only between the start date and time and the end date and time. Alter the ActiveEndDate property to set the date when the schedule is no longer in effect.

If the ActiveEndDate property has not been set, the DateTime.MinValue is returned.

Примеры

Планирование автоматических административных задач в агенте SQL Server

См. также

Справочник

JobSchedule Класс

Пространство имен Microsoft.SqlServer.Management.Smo.Agent

Другие ресурсы

Задачи автоматизированного администрирования (агент SQL Server)

sp_add_schedule (Transact-SQL)