Click or drag to resize
Task Scheduler Managed Class Library

SettingsBuilder Methods

The SettingsBuilder type exposes the following members.

Methods
  NameDescription
Public methodAllowingStartIfOnBatteries
Indicates that the task will be started even if the computer is running on battery power.
Public methodAllowingStartOnRemoteAppSession
Indicates that the task will be started even if the task is triggered to run in a Remote Applications Integrated Locally (RAIL) session.
Public methodAsTask(String)
Assigns the name of the task and registers it.
(Inherited from BaseBuilder.)
Public methodAsTask(String, TaskCreation, String, String, TaskLogonType)
Assigns the name of the task and registers it.
(Inherited from BaseBuilder.)
Public methodDataIs
Sets the task data to a string.
Public methodDeletingTaskAfter
Sets the amount of time that the Task Scheduler will wait before deleting the task after it expires.
Public methodDisallowingDemandStart
Indicates that the task cannot be started with the Run command or the Context menu.
Public methodDisallowingHardTerminate
Indicates that the task may not be terminated by using TerminateProcess.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExecutingAtMost
Sets the amount of time that is allowed to complete the task.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInstancesAre
Sets the policy that defines how the Task Scheduler handles multiple instances of the task.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNotStoppingIfGoingOnBatteries
Indicates that the task will not be stopped if the computer switches to battery power.
Public methodOnlyIfIdle
Indicates that the Task Scheduler will run the task only if the computer is in an idle condition.
Public methodOnlyIfNetworkAvailable
Indicates that the Task Scheduler will run the task only when a network is available.
Public methodPriorityIs
Sets the priority level of the task.
Public methodRestartingEvery
Sets a value that specifies how long the Task Scheduler will attempt to restart the task.
Public methodStartingWhenAvailable
Indicates that the Task Scheduler can start the task at any time after its scheduled time has passed.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWakingToRun
Indicates that the Task Scheduler will wake the computer when it is time to run the task.
Top
See Also