2012-03-13 84 views

回答

4

找到的解決方案here

using (TaskService ts = new TaskService()) 
{ 
    string task = "TaskName"; 
    // This will find it even if its down in a folder. Alternately you could call: 
    // Task t = ts.GetTask(task); 
    Task t = ts.FindTask(task); 
    if (t != null) 
     t.Run(); 
}