| ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > ZennoPoster Class > SetSchedulerSettings Method : SetSchedulerSettings(String,String) Method |
Type: System.Guid
Name of task to change scheduler settings. Finds the first occurrence.
Type: System.String
New scheduler settings to change in xml format.
public static void SetSchedulerSettings( string name, string schedulerSettings )
Type: System.Guid
Name of task to change scheduler settings. Finds the first occurrence.
Type: System.String
New scheduler settings to change in xml format.
// Create scheduler setting in xml format var settings = @"<StartDate>{date DD.MM.YYYY hh:mm:ss}</StartDate> <EndDate>{date DD.MM.YYYY hh:mm:ss}</EndDate> <RepetitionCount>1</RepetitionCount> <ScheduleType>{EveryMinutes, EveryDays, EveryWorkDays}</ScheduleType> <RepeatType>{WithoutEnd, FinishAfter, FinishByDate}</RepeatType> <ActivateTime>{date DD.MM.YYYY hh:mm:ss}</ActivateTime> <ActivateWorkTime>{date DD.MM.YYYY hh:mm:ss}</ActivateWorkTime> <IsActive>{True, False}</IsActive> <NumberOfTries>0</NumberOfTries> <Minutes>1</Minutes> <Days>1</Days> <LastScheduleDate>{date DD.MM.YYYY hh:mm:ss}</LastScheduleDate> <IsClearSucces>{True, False}</IsClearSucces>"; // Set the setting to first task with known name var name = "Name"; ZennoPoster.SetSchedulerSettings(name, settings);
// Create scheduler setting in xml format $settings = @"<StartDate>{date DD.MM.YYYY hh:mm:ss}</StartDate> <EndDate>{date DD.MM.YYYY hh:mm:ss}</EndDate> <RepetitionCount>1</RepetitionCount> <ScheduleType>{EveryMinutes, EveryDays, EveryWorkDays}</ScheduleType> <RepeatType>{WithoutEnd, FinishAfter, FinishByDate}</RepeatType> <ActivateTime>{date DD.MM.YYYY hh:mm:ss}</ActivateTime> <ActivateWorkTime>{date DD.MM.YYYY hh:mm:ss}</ActivateWorkTime> <IsActive>{True, False}</IsActive> <NumberOfTries>0</NumberOfTries> <Minutes>1</Minutes> <Days>1</Days> <LastScheduleDate>{date DD.MM.YYYY hh:mm:ss}</LastScheduleDate> <IsClearSucces>{True, False}</IsClearSucces>"; // Set the setting to first task with known name $name = "Name"; ZennoPoster::SetSchedulerSettings($name, $settings);
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.