How to get NextRunTime from TaskDefinition

32 views
Skip to first unread message

ram...@gmail.com

unread,
Aug 8, 2018, 12:25:46 PM8/8/18
to Task Scheduler Managed Wrapper
   Hi,
I have created "TaskDefinition" with adding Triggers and Actions, and before registering it through RegisterTaskDefinition, I want to show on my UI, the value of "NextRunTime". How can I obtain that from "TaskDefinition" because at this stage, no Task has been created.

Thanks
...
Ramiz




daha...@gmail.com

unread,
Jul 17, 2019, 11:48:44 AM7/17/19
to Task Scheduler Managed Wrapper
Well, you can't without creating it. What I do in the UI is create a dummy, hidden, disabled task using the definition and then I use the Task.NextRunTime property.
Reply all
Reply to author
Forward
0 new messages