Compartir a través de


RemoveAllJobSchedules Método (Boolean)

Removes all shared and unshared schedules from the job.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Agent
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Sub RemoveAllJobSchedules ( _
    keepUnusedSchedules As Boolean _
)
'Uso
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
)

Parámetros

Notas

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.