Task Members

Include Protected Members
Include Inherited Members

Represents an item in the Scheduled Tasks folder.

The Task type exposes the following members.

Properties

  Name Description
Public property AccountName Gets the name of the account under which the task process is to run.
Public property ApplicationName Gets or sets the application file name that the task is to run.
Public property Comment Gets or sets the comment associated with the task.
Public property Creator Gets or sets the creator of the task.
Public property ExitCode Gets the Win32 exit code from the last execution of the task.
Public property Flags Gets or sets the TaskFlags object associated with the current task.
Public property Hidden Gets or sets whether to hide a task.
Public property IdleWaitDeadlineMinutes Gets or sets the maximum number of minutes that the Task Scheduler is to wait for a required idle period to occur.
Public property IdleWaitMinutes Gets or sets how long the system must remain idle, even after the trigger would normally fire, before the task is to run.
Public property MaxRunTime Gets or sets the maximum length of time the task is permitted to run.
Public property MaxRunTimeLimited Gets or sets whether the maximum run time is limited.
Public property MostRecentRunTime Gets the most recent time the task began running.
Public property Name Gets the name of the task.
Public property NextRunTime Gets the next time the task runs.
Public property Parameters Gets or sets the command-line parameters for the task.
Public property Priority Gets or sets the priority for the task process.
Public property Status Gets the status of the task.
Public property Tag Gets or sets arbitrary data associated with the task.
Public property TriggerDescription Gets the count of scheduled tasks on the computer.
Public property Triggers Gets the list of triggers associated with the task.
Public property WorkingDirectory

Top

Methods

  Name Description
Public method Close Releases the COM interfaces for this task.
Public method DisplayForEdit Displays the property pages of the current task for the user to edit.
Public method DisplayPropertySheet() Displays all property pages.
Public method DisplayPropertySheet(Task.PropPages) Displays the specified property pages only.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method NextRunTimeAfter Calculates the next time the task is scheduled to run after a given arbitrary time.
Public method Run Schedules the task for immediate execution.
Public method Save() Saves changes that were made to the current task.
Public method Save(String) Saves the task with a new name.
Public method SetAccountInformation Sets the account under which the task is to run.
Public method Terminate Requests termination of the task if it is currently running.
Public method ToString Overridden. Outputs the name of the task, the application, and the parameters. (Overrides Object.ToString().)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IDisposable.Dispose

Top

See Also

Reference

Task Class

Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler Namespace