Page tree
Skip to end of metadata
Go to start of metadata

This function is used to get an list of TJob

Parameters

Used to call the function

  1. options - TJobGetOptions

Returns

Returns the following

 

Example in .NET C#
        public List<TJob> GetProjects(DateTime modified)
        {
            var dt = modified == DateTime.MinValue ? new DateTime(1899, 12, 30) : modified;
            List<TJob> list = new List<TJob>();
            bool doFetch = true;
            do
            {
                var entries = client.GetJobsEx(new TJobGetOptions() { Modified = dt,  MaxRecords = 400 });
                list.AddRange(entries);
                if (entries.Count() == 0)
                {
                    doFetch = false;
                }
                else
                {
                    dt = entries[entries.Length - 1].Modified.AddMilliseconds(1);
                }
            } while (doFetch);
            
            return list;
        }