다음을 통해 공유


RemoveAllJobSchedules 메서드 (Boolean)

Removes all shared and unshared schedules from the job.

네임스페이스:  Microsoft.SqlServer.Management.Smo.Agent
어셈블리:  Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo

구문

‘선언
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.