ScheduledTasks.DeleteTask Method
Deletes a given task.
Namespace: Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler
Assembly: Microsoft.Office.Excel.Server.Addins.ComputeCluster (in Microsoft.Office.Excel.Server.Addins.ComputeCluster.dll)
Syntax
'Declaration
Public Function DeleteTask ( _
name As String _
) As Boolean
'Usage
Dim instance As ScheduledTasks
Dim name As String
Dim returnValue As Boolean
returnValue = instance.DeleteTask(name)
public bool DeleteTask(
string name
)
Parameters
- name
Type: System.String
Name of task to delete.
Return Value
Type: System.Boolean
If true, a task is deleted; otherwise, false.
Remarks
If you delete a task that is open, a subsequent save operation throws an exception. However, you can save to a file to create a new task.
See Also
Reference
Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler Namespace