ZennoLab Assemblies Documentation
SetSchedulerSettings Method
See Also  Example Send Feedback
ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > ZennoPoster Class : SetSchedulerSettings Method
id

Type: System.Guid

Id of task to change scheduler settings.

schedulerSettings

Type: System.String

New scheduler settings to change in xml format.

Glossary Item Box

Set the sheduler settings

Syntax

C# 
public static void SetSchedulerSettings( 
   Guid id,
   string schedulerSettings
)

Parameters

id

Type: System.Guid

Id of task to change scheduler settings.

schedulerSettings

Type: System.String

New scheduler settings to change in xml format.

Example

The following example shows call the SetSchedulerSettings method.
C#Copy Code
// 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 the task with known id
ZennoPoster.SetSchedulerSettings(id, settings);
PHPCopy Code
// 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 the task with known id
ZennoPoster::SetSchedulerSettings($id, $settings);

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.