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
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
IdleDurationString
Gets the duration the computer has to be idle before the task is started.
public string IdleDurationString { get; }
Property Value
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
IdleWaitTimeoutString
Gets the duration the computer has to be idle before the task is started.
public string IdleWaitTimeoutString { get; }
Property Value
NetworkRequirementString
Gets the network requirement for this task.
public string NetworkRequirementString { get; }
Property Value
RequiredNetworkConnectionName
Gets or sets the name of the network connection that is required.
public string RequiredNetworkConnectionName { get; set; }
Property Value
RestartOnIdle
Gets or sets whether to resume the scheduled task if the computer again becomes idle.
public BooleanOption RestartOnIdle { get; set; }
Property Value
RunOnlyIfIdle
Gets or sets whether the task should only start when the system is idle.
public BooleanOption RunOnlyIfIdle { get; set; }
Property Value
RunOnlyIfNetworkAvailable
Gets or sets whether the task should only run if a network is available.
public BooleanOption RunOnlyIfNetworkAvailable { get; set; }
Property Value
StopIfGoingOnBatteries
Gets or sets whether the task should be stopped if the computer switches to battery power.
public BooleanOption StopIfGoingOnBatteries { get; set; }
Property Value
StopOnIdleEnd
Gets or sets whether to stop the scheduled task if the computer ceases to be idle.
public BooleanOption StopOnIdleEnd { get; set; }
Property Value
WakeToRun
Gets or sets whether to wake the computer to run this task.
public BooleanOption WakeToRun { get; set; }