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 | |
---|---|---|
AccountName | Gets the name of the account under which the task process is to run. | |
ApplicationName | Gets or sets the application file name that the task is to run. | |
Comment | Gets or sets the comment associated with the task. | |
Creator | Gets or sets the creator of the task. | |
ExitCode | Gets the Win32 exit code from the last execution of the task. | |
Flags | Gets or sets the TaskFlags object associated with the current task. | |
Hidden | Gets or sets whether to hide a task. | |
IdleWaitDeadlineMinutes | Gets or sets the maximum number of minutes that the Task Scheduler is to wait for a required idle period to occur. | |
IdleWaitMinutes | Gets or sets how long the system must remain idle, even after the trigger would normally fire, before the task is to run. | |
MaxRunTime | Gets or sets the maximum length of time the task is permitted to run. | |
MaxRunTimeLimited | Gets or sets whether the maximum run time is limited. | |
MostRecentRunTime | Gets the most recent time the task began running. | |
Name | Gets the name of the task. | |
NextRunTime | Gets the next time the task runs. | |
Parameters | Gets or sets the command-line parameters for the task. | |
Priority | Gets or sets the priority for the task process. | |
Status | Gets the status of the task. | |
Tag | Gets or sets arbitrary data associated with the task. | |
TriggerDescription | Gets the count of scheduled tasks on the computer. | |
Triggers | Gets the list of triggers associated with the task. | |
WorkingDirectory |
Top
Methods
Name | Description | |
---|---|---|
Close | Releases the COM interfaces for this task. | |
DisplayForEdit | Displays the property pages of the current task for the user to edit. | |
DisplayPropertySheet() | Displays all property pages. | |
DisplayPropertySheet(Task.PropPages) | Displays the specified property pages only. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
NextRunTimeAfter | Calculates the next time the task is scheduled to run after a given arbitrary time. | |
Run | Schedules the task for immediate execution. | |
Save() | Saves changes that were made to the current task. | |
Save(String) | Saves the task with a new name. | |
SetAccountInformation | Sets the account under which the task is to run. | |
Terminate | Requests termination of the task if it is currently running. | |
ToString | Overridden. Outputs the name of the task, the application, and the parameters. (Overrides Object.ToString().) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IDisposable.Dispose |
Top
See Also
Reference
Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler Namespace