Jobs.GetJobByName(string) - VisualCron - Forum

Community forum

keithdavis
2013-10-07T17:51:38Z
Does this method not work? I can't even find it in the API documentation. It seems to be returning nothing (not null, nothing.)
Support
2013-10-07T20:47:36Z
It returns null if the specified name is not found and it returns the JobClass object if found.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
keithdavis
2013-10-07T23:14:15Z
Well, I swear when I tried it before, I got nothing - in fact, even the watch showed the variable did not exist. Very strange. So, I wrote my own that iterated over all jobs (server.Jobs.GetAll()). However, now GetJobByName() is working.
Scroll to Top