Table of Contents

Class WindowsScheduledTaskSettings

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents the settings used for running a scheduled task

public class WindowsScheduledTaskSettings : GlobalSerializableClassicBase
Inheritance
WindowsScheduledTaskSettings

Constructors

WindowsScheduledTaskSettings()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsScheduledTaskSettings class.

public WindowsScheduledTaskSettings()

Properties

AllowHardTerminate

Gets or sets whether to force a running task to stop if it does not end when requested.

public BooleanOption AllowHardTerminate { get; set; }

Property Value

BooleanOption

AllowStartOnDemand

Gets or sets whether the task is allowed to be started on demand.

public BooleanOption AllowStartOnDemand { get; set; }

Property Value

BooleanOption

DeleteExpiredTaskAfter

Gets or sets the time after which the task should be deleted as a timespan value - for example "P1D".

public string DeleteExpiredTaskAfter { get; set; }

Property Value

string

DeleteExpiredTaskAfterString

Gets whether a task is not scheduled to run again should be deleted.

public string DeleteExpiredTaskAfterString { get; }

Property Value

string

ExecutionTimeLimit

Gets or sets the execution time limit as a timespan value - for example "P1D".

public string ExecutionTimeLimit { get; set; }

Property Value

string

ExecutionTimeLimitString

Gets the execution time limit for this task as a human readable string.

public string ExecutionTimeLimitString { get; }

Property Value

string

MultipleInstancesPolicy

Gets or sets the action to take when a scheduled task starts and an existing scheduled task is already running.

public WindowsScheduledTaskMultipleInstancesPolicy MultipleInstancesPolicy { get; set; }

Property Value

WindowsScheduledTaskMultipleInstancesPolicy

MultipleInstancesPolicyString

Gets the action to take when a scheduled task starts and an existing scheduled task is already running.

public string MultipleInstancesPolicyString { get; }

Property Value

string

RestartCount

Gets or sets the restart count for the task.

public int RestartCount { get; set; }

Property Value

int

RestartInterval

Gets or sets the restart interval for the task in timespan format.

public string RestartInterval { get; set; }

Property Value

string

RestartString

Gets the restart action for this task as a human readable string.

public string RestartString { get; }

Property Value

string

StartWhenAvailable

Gets or sets whether to run the task as soon as possible after a scheduled start is missed.

public BooleanOption StartWhenAvailable { get; set; }

Property Value

BooleanOption