Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

New Post: Daily Trigger with weekdays set

$
0
0

I think you are looking instead for a WeeklyTrigger. The following code will run the action every week on weekdays at the specified time.

td.Triggers.Add(new WeeklyTrigger(DaysOfTheWeek.Monday | DaysOfTheWeek.Tuesday | DaysOfTheWeek.Wednesday |
   DaysOfTheWeek.Thursday | DaysOfTheWeek.Friday) { StartBoundary = dtCalendar.Value+dtTime.Value.TimeOfDay });

Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>