Table of Contents

Class WindowsScheduledTaskConditions

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

Represents the conditions used for running a scheduled task

public class WindowsScheduledTaskConditions : GlobalSerializableClassicBase
Inheritance
WindowsScheduledTaskConditions

Constructors

WindowsScheduledTaskConditions()

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

public WindowsScheduledTaskConditions()

Properties

DisallowStartIfOnBatteries

Gets or sets whether the task should be disallowed from starting if not on mains power.

public BooleanOption DisallowStartIfOnBatteries { get; set; }

Property Value

BooleanOption

IdleDuration

Gets or sets the duration the computer has to be idle before the task is started as a timespan value - for example "PT10M".

public string IdleDuration { get; set; }

Property Value

string

IdleDurationString

Gets the duration the computer has to be idle before the task is started.

public string IdleDurationString { get; }

Property Value

string

IdleWaitTimeout

Gets or sets the duration the computer should wait for the required idle duration as a timespan value - for example "PT1H".

public string IdleWaitTimeout { get; set; }

Property Value

string

IdleWaitTimeoutString

Gets the duration the computer has to be idle before the task is started.

public string IdleWaitTimeoutString { get; }

Property Value

string

NetworkRequirementString

Gets the network requirement for this task.

public string NetworkRequirementString { get; }

Property Value

string

RequiredNetworkConnectionName

Gets or sets the name of the network connection that is required.

public string RequiredNetworkConnectionName { get; set; }

Property Value

string

RestartOnIdle

Gets or sets whether to resume the scheduled task if the computer again becomes idle.

public BooleanOption RestartOnIdle { get; set; }

Property Value

BooleanOption

RunOnlyIfIdle

Gets or sets whether the task should only start when the system is idle.

public BooleanOption RunOnlyIfIdle { get; set; }

Property Value

BooleanOption

RunOnlyIfNetworkAvailable

Gets or sets whether the task should only run if a network is available.

public BooleanOption RunOnlyIfNetworkAvailable { get; set; }

Property Value

BooleanOption

StopIfGoingOnBatteries

Gets or sets whether the task should be stopped if the computer switches to battery power.

public BooleanOption StopIfGoingOnBatteries { get; set; }

Property Value

BooleanOption

StopOnIdleEnd

Gets or sets whether to stop the scheduled task if the computer ceases to be idle.

public BooleanOption StopOnIdleEnd { get; set; }

Property Value

BooleanOption

WakeToRun

Gets or sets whether to wake the computer to run this task.

public BooleanOption WakeToRun { get; set; }

Property Value

BooleanOption