Getting web farm synchronization task data

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

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);

 

Page url: http://devnet.kentico.com/docs/5_5r2/devguide/index.html?api_getting_web_farm_synchronization_task_data.htm