| ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > ZennoPoster Class > SetExecutionSettings Method : SetExecutionSettings(String,String) Method |
Type: System.String
Name of task to change execution settings. Finds the first occurrence.
Type: System.String
New execution settings to change in xml format.
public static void SetExecutionSettings( string name, string executionSettings )
Type: System.String
Name of task to change execution settings. Finds the first occurrence.
Type: System.String
New execution settings to change in xml format.
// Create execution settings in xml format var settings = @"<LimitOfThreads>1</LimitOfThreads> <MaxAllowOfThreads>0</MaxAllowOfThreads> <DoneSuccesfully>0</DoneSuccesfully> <DoneAll>0</DoneAll> <NumberOfTries>0</NumberOfTries> <LastNumberOfTries>0</LastNumberOfTries> <Priority>50</Priority> <Proxy>{DoNotUseProxy, IfPossible, UseProxyWithoutRemove, UseProxy}</Proxy> <Status>Newbie</Status> <ProxyLabels></ProxyLabels> <ShouldBeExecutedRandomly>{True, False}</ShouldBeExecutedRandomly> <GroupLabels>Без метки</GroupLabels> <GroupStates>Выполнены</GroupStates> <MaxNumOfSuccesStop>-1</MaxNumOfSuccesStop> <MaxNumOfFailStop>-1</MaxNumOfFailStop> <NumOfFailStop>0</NumOfFailStop>"; // Set the settings to first task with known name var name = "Name"; ZennoPoster.SetExecutionSettings(name, settings);
// Create execution settings in xml format $settings = @"<LimitOfThreads>1</LimitOfThreads> <MaxAllowOfThreads>0</MaxAllowOfThreads> <DoneSuccesfully>0</DoneSuccesfully> <DoneAll>0</DoneAll> <NumberOfTries>0</NumberOfTries> <LastNumberOfTries>0</LastNumberOfTries> <Priority>50</Priority> <Proxy>{DoNotUseProxy, IfPossible, UseProxyWithoutRemove, UseProxy}</Proxy> <Status>Newbie</Status> <ProxyLabels></ProxyLabels> <ShouldBeExecutedRandomly>{True, False}</ShouldBeExecutedRandomly> <GroupLabels>Без метки</GroupLabels> <GroupStates>Выполнены</GroupStates> <MaxNumOfSuccesStop>-1</MaxNumOfSuccesStop> <MaxNumOfFailStop>-1</MaxNumOfFailStop> <NumOfFailStop>0</NumOfFailStop>"; // Set the settings to first task with known name $name = "Name"; ZennoPoster::SetExecutionSettings($name, $settings);
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.