The following sample code shows how you can get a web farm synchronization task as a WebFarmTaskInfo object:
[C#]
using CMS.WebFarmSync;
...
// Get web farm task object by ID WebFarmTaskInfo wfti = WebFarmTaskInfoProvider.GetWebFarmTaskInfo(10); |
The following sample code shows how you can get a DataSet containing synchronization tasks from the system:
[C#]
using System.Data; using CMS.WebFarmSync;
...
string where = ""; string orderby = "";
// Get DataSet of web farm tasks by where condition and orderby DataSet ds = WebFarmTaskInfoProvider.GetWebFarmTasks(where, orderby); |