Task.Terminate Method
Requests termination of the task if it is currently running.
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 Sub Terminate
'Usage
Dim instance As Task
instance.Terminate()
public void Terminate()
Remarks
The call returns immediately, although the task can continue briefly. For Windows programs, a WM_CLOSE message is sent first and the task is given three minutes to shut down voluntarily. If it does not, or if the task is not a Windows program, the TerminateProcess is used.
See Also
Reference
Microsoft.Office.Excel.Server.Addins.ComputeCluster.TaskScheduler Namespace