TestimoX

API Reference

Class

TaskSchedulerWriter

Namespace ComputerX.ScheduledTasks
Assembly ComputerX
Modifiers static

Writer helpers for creating, updating, and controlling tasks.

Inheritance

  • Object
  • TaskSchedulerWriter

Methods

public static Boolean Delete(String path, String computer = null, TaskSchedulerOptions options = null) #
Returns: Boolean

Deletes a task at the specified path.

Parameters

path System.String requiredposition: 0
computer System.String = null optionalposition: 1
options ComputerX.ScheduledTasks.TaskSchedulerOptions = null optionalposition: 2
public static Boolean Disable(String path, String computer = null, TaskSchedulerOptions options = null) #
Returns: Boolean

Disables a task at the specified path.

Parameters

path System.String requiredposition: 0
computer System.String = null optionalposition: 1
options ComputerX.ScheduledTasks.TaskSchedulerOptions = null optionalposition: 2
public static Boolean Enable(String path, String computer = null, TaskSchedulerOptions options = null) #
Returns: Boolean

Enables a task at the specified path.

Parameters

path System.String requiredposition: 0
computer System.String = null optionalposition: 1
options ComputerX.ScheduledTasks.TaskSchedulerOptions = null optionalposition: 2
public static Boolean RunNow(String path, String computer = null, TaskSchedulerOptions options = null) #
Returns: Boolean

Runs a task immediately.

Parameters

path System.String requiredposition: 0
computer System.String = null optionalposition: 1
options ComputerX.ScheduledTasks.TaskSchedulerOptions = null optionalposition: 2
public static Boolean SetExec(TaskDefinitionSpec spec, String computer = null, TaskSchedulerOptions options = null) #
Returns: Boolean

Creates or updates an Exec-based task at Path.

Parameters

spec ComputerX.ScheduledTasks.TaskDefinitionSpec requiredposition: 0
computer System.String = null optionalposition: 1
options ComputerX.ScheduledTasks.TaskSchedulerOptions = null optionalposition: 2