Свойство HasSchedule
Gets the Boolean property value that specifies whether the job has at least one schedule.
Пространство имен: Microsoft.SqlServer.Management.Smo.Agent
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
<SfcPropertyAttribute(SfcPropertyFlags.Expensive)> _
Public ReadOnly Property HasSchedule As Boolean
Get
'Применение
Dim instance As Job
Dim value As Boolean
value = instance.HasSchedule
[SfcPropertyAttribute(SfcPropertyFlags.Expensive)]
public bool HasSchedule { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Expensive)]
public:
property bool HasSchedule {
bool get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Expensive)>]
member HasSchedule : bool
function get HasSchedule () : boolean
Значение свойства
Тип System. . :: . .Boolean
A Boolean value that specifies whether the job has a schedule assigned or not.
If True, the job has at least one schedule.
If False (default), the job has no schedule.
Замечания
You can query the JobSchedules collection property to evaluate which schedule is enabled for the job. If the HasSchedule property is False, the JobSchedules collection property is empty.
См. также