This project has moved. For the latest updates, please go here.

error to save enabled property in task

Topics: Errors
Apr 26, 2016 at 11:10 PM
Hi the property enabled dont work when do RegisterChanges(), some help? version 2.5.17

regards!
using (TaskService ts = new TaskService())
{
  Task t = ts.GetTask(taskName);
  if (t != null)
  {
    if (!t.Enabled)
    {
      t.Enabled = true;
      t.RegisterChanges();
    }
  }
}
Coordinator
Apr 27, 2016 at 3:35 PM
Marked as answer by dahall on 4/29/2016 at 10:04 AM
Apr 27, 2016 at 5:25 PM
I read the thread, has been util for me, now work perfect, thanks for your help!