This project has moved and is read-only. For the latest updates, please go here.

Edit existing tasks

Topics: Examples
Jan 5 at 7:18 AM
I cant find anything in the documentation that tells me how to edit tasks I have already registered? I have tried:

matchingJob.Definition.Settings.Enabled = false;

matchingJob.Definition.Triggers.Clear();
matchingJob.Definition.Triggers.Add(trigger);

I get no errors but my tasks are not amended?
Jan 5 at 8:46 PM
Check out the following link: https://taskscheduler.codeplex.com/wikipage?title=Examples&referringTitle=Documentation#get

You need to use the RegisterChanges method after making changes to the properties exposed via the Definition. You can also call the RegisterTaskDefinition method from the task's parent folder with the same task name and then you have the ability to change the user or password.
Marked as answer by dahall on 1/10/2017 at 7:58 AM