RemoveAllJobSchedules 方法 (Boolean)

Removes all shared and unshared schedules from the job.

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

语法

声明
Public Sub RemoveAllJobSchedules ( _
    keepUnusedSchedules As Boolean _
)
用法
Dim instance As Job
Dim keepUnusedSchedules As Boolean

instance.RemoveAllJobSchedules(keepUnusedSchedules)
public void RemoveAllJobSchedules(
    bool keepUnusedSchedules
)
public:
void RemoveAllJobSchedules(
    bool keepUnusedSchedules
)
member RemoveAllJobSchedules : 
        keepUnusedSchedules:bool -> unit 
public function RemoveAllJobSchedules(
    keepUnusedSchedules : boolean
)

参数

注释

On successful execution, the JobSchedules collection property of the Job object is emptied. To reschedule the referenced job, create JobSchedule objects and add them to the JobSchedulescollection property of the Job object.