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

Type: System.Guid

Id task to change execution settings.

executionSettings

Type: System.String

New execution settings to change in xml format.

Glossary Item Box

Set the execution settings

Syntax

C# 
public static void SetExecutionSettings( 
   Guid id,
   string executionSettings
)

Parameters

id

Type: System.Guid

Id task to change execution settings.

executionSettings

Type: System.String

New execution settings to change in xml format.

Example

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