コード例 #1
0
		private void UpdateWTSFromDefinition()
		{
			using (ScheduledJobWTS scheduledJobWT = new ScheduledJobWTS())
			{
				scheduledJobWT.UpdateTask(this);
			}
		}
コード例 #2
0
 /// <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);
     }
 }