private void UpdateWTSFromDefinition() { using (ScheduledJobWTS scheduledJobWT = new ScheduledJobWTS()) { scheduledJobWT.UpdateTask(this); } }
/// <summary> /// Updates existing information if scheduled job already exists. /// WTS entry includes command line, options, and trigger conditions. /// </summary> private void UpdateWTSFromDefinition() { using (ScheduledJobWTS taskScheduler = new ScheduledJobWTS()) { taskScheduler.UpdateTask(this); } }