JobSchedule.JobCount 属性

Gets the number of jobs that require the referenced job schedule.

命名空间:  Microsoft.SqlServer.Management.Smo.Agent
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Expensive Or SfcPropertyFlags.Standalone)> _
Public ReadOnly Property JobCount As Integer 
    Get
用法
Dim instance As JobSchedule 
Dim value As Integer 

value = instance.JobCount
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone)]
public int JobCount { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Expensive|SfcPropertyFlags::Standalone)]
public:
property int JobCount {
    int get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone)>]
member JobCount : int
function get JobCount () : int

属性值

类型:System.Int32
An Int32 value that specifies the number of jobs that require the referenced job schedule.

示例

在 SQL Server 代理中计划自动管理任务

请参阅

参考

JobSchedule 类

Microsoft.SqlServer.Management.Smo.Agent 命名空间

其他资源

自动执行管理任务(SQL Server 代理)

sp_add_schedule (Transact-SQL)