locked
Creating Job from Saved XML file in C# RRS feed

  • Question

  • Hello Everyone,

    What is the best way to load a job saved as an xml file in C#?  I've been looking through the documentation and I can't seem to find a clear way to create an ISchedulerJob from a saved xml job file.

    Thanks in advance,

    Bob

    Friday, May 13, 2011 9:55 PM

Answers

  • Hi,

    The simplest way of doing it would be using the API function

    jobname.RestoreFromXml(string url);

    however there is also a version of RestoreFromXml which reads from a XML reader i.e,

    jobname.RestoreFromXml(System.Xml.XmlReader reader);

    Please let me know if this is what you were looking for.

    Regards,

    Sridutt

    Monday, May 16, 2011 9:32 AM

All replies

  • Hi,

    The simplest way of doing it would be using the API function

    jobname.RestoreFromXml(string url);

    however there is also a version of RestoreFromXml which reads from a XML reader i.e,

    jobname.RestoreFromXml(System.Xml.XmlReader reader);

    Please let me know if this is what you were looking for.

    Regards,

    Sridutt

    Monday, May 16, 2011 9:32 AM
  • Thanks Sridutt!
    Monday, May 16, 2011 10:51 PM