Aracılığıyla paylaş


Job.RemoveAllJobSchedules Method ()

Removes all shared and unshared schedules from the job.

Namespace: Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Bildirim
Public Sub RemoveAllJobSchedules
public void RemoveAllJobSchedules ()
public:
void RemoveAllJobSchedules ()
public void RemoveAllJobSchedules ()
public function RemoveAllJobSchedules ()

Remarks

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.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.